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>
This commit is contained in:

committed by
David Sterba

parent
3fbe5c02ae
commit
2c536799f1
@@ -2272,7 +2272,8 @@ again:
|
||||
} else {
|
||||
list_del_init(&reloc_root->root_list);
|
||||
}
|
||||
btrfs_drop_snapshot(reloc_root, rc->block_rsv, 0, 1);
|
||||
ret = btrfs_drop_snapshot(reloc_root, rc->block_rsv, 0, 1);
|
||||
BUG_ON(ret < 0);
|
||||
}
|
||||
|
||||
if (found) {
|
||||
|
Reference in New Issue
Block a user