From: Wang Shilong Date: Tue, 7 Jan 2014 09:26:58 +0000 (+0800) Subject: Btrfs: handle EAGAIN case properly in btrfs_drop_snapshot() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=90515e7f5d7d24cbb2a4038a3f1b5cfa2921aa17;p=linux.git Btrfs: handle EAGAIN case properly in btrfs_drop_snapshot() We may return early in btrfs_drop_snapshot(), we shouldn't call btrfs_std_err() for this case, fix it. Cc: stable@vger.kernel.org Signed-off-by: Wang Shilong Signed-off-by: Josef Bacik Signed-off-by: Chris Mason --- diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index 41fe80b9db47e..77acc08738959 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c @@ -7835,7 +7835,7 @@ out: */ if (!for_reloc && root_dropped == false) btrfs_add_dead_root(root); - if (err) + if (err && err != -EAGAIN) btrfs_std_error(root->fs_info, err); return err; }