aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.h
diff options
context:
space:
mode:
authorJeff Mahoney <jeffm@suse.com>2011-10-03 23:22:41 -0400
committerDavid Sterba <dsterba@suse.cz>2012-03-21 20:45:36 -0400
commit2c536799f1bde905bbacf7af3aa6be3f4de66005 (patch)
tree54f306bf4320d97e73f9728268a99910b234d048 /fs/btrfs/ctree.h
parent3fbe5c02ae5a59053d779392b9a12aa8f6d6198e (diff)
btrfs: btrfs_drop_snapshot should return int
Commit cb1b69f4 (Btrfs: forced readonly when btrfs_drop_snapshot() fails) made btrfs_drop_snapshot return void because there were no callers checking the return value. That is the wrong order to handle error propogation since the caller will have no idea that an error has occured and continue on as if nothing went wrong. Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r--fs/btrfs/ctree.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h
index 30c5a247ab2b..f6bca05a4b4c 100644
--- a/fs/btrfs/ctree.h
+++ b/fs/btrfs/ctree.h
@@ -2661,9 +2661,9 @@ static inline int btrfs_next_item(struct btrfs_root *root, struct btrfs_path *p)
2661} 2661}
2662int btrfs_prev_leaf(struct btrfs_root *root, struct btrfs_path *path); 2662int btrfs_prev_leaf(struct btrfs_root *root, struct btrfs_path *path);
2663int btrfs_leaf_free_space(struct btrfs_root *root, struct extent_buffer *leaf); 2663int btrfs_leaf_free_space(struct btrfs_root *root, struct extent_buffer *leaf);
2664void btrfs_drop_snapshot(struct btrfs_root *root, 2664int __must_check btrfs_drop_snapshot(struct btrfs_root *root,
2665 struct btrfs_block_rsv *block_rsv, int update_ref, 2665 struct btrfs_block_rsv *block_rsv,
2666 int for_reloc); 2666 int update_ref, int for_reloc);
2667int btrfs_drop_subtree(struct btrfs_trans_handle *trans, 2667int btrfs_drop_subtree(struct btrfs_trans_handle *trans,
2668 struct btrfs_root *root, 2668 struct btrfs_root *root,
2669 struct extent_buffer *node, 2669 struct extent_buffer *node,