Btrfs: make sure reserve_metadata_bytes doesn't leak out strange errors
authorChris Mason <chris.mason@oracle.com>
Wed, 27 Jul 2011 19:57:44 +0000 (15:57 -0400)
committerChris Mason <chris.mason@oracle.com>
Wed, 27 Jul 2011 20:11:41 +0000 (16:11 -0400)
commit75c195a2cac2c3c8366c0b87de2d6814c4f4d638
tree82ac06d2c8f3746a3d438853d03239311c2a71a1
parent2cf8572dac62cc2ff7e995173e95b6c694401b3f
Btrfs: make sure reserve_metadata_bytes doesn't leak out strange errors

The btrfs transaction code will return any errors that come from
reserve_metadata_bytes.  We need to make sure we don't return funny
things like 1 or EAGAIN.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/extent-tree.c