]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commit2c536799f1bde905bbacf7af3aa6be3f4de66005
tree54f306bf4320d97e73f9728268a99910b234d048
parent3fbe5c02ae5a59053d779392b9a12aa8f6d6198e
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>
fs/btrfs/ctree.h
fs/btrfs/extent-tree.c
fs/btrfs/relocation.c
fs/btrfs/transaction.c