]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: btrfs_drop_snapshot should return int
authorJeff Mahoney <jeffm@suse.com>
Tue, 4 Oct 2011 03:22:41 +0000 (23:22 -0400)
committerDavid Sterba <dsterba@suse.cz>
Thu, 22 Mar 2012 00:45:36 +0000 (01:45 +0100)
commit314378f6e7c6b53d1c697d9ef39f30a59cab22c3
tree54f306bf4320d97e73f9728268a99910b234d048
parentd4d64e43b6e1953e624e527cfe1488b6669b8bb7
btrfs: btrfs_drop_snapshot should return int

Commit 9309e888 (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>
fs/btrfs/ctree.h
fs/btrfs/extent-tree.c
fs/btrfs/relocation.c
fs/btrfs/transaction.c