Btrfs: handle EAGAIN case properly in btrfs_drop_snapshot()
authorWang Shilong <wangsl.fnst@cn.fujitsu.com>
Tue, 7 Jan 2014 09:26:58 +0000 (17:26 +0800)
committerChris Mason <clm@fb.com>
Tue, 28 Jan 2014 21:20:23 +0000 (13:20 -0800)
commit90515e7f5d7d24cbb2a4038a3f1b5cfa2921aa17
tree0946397fffb9438e488e0d1ba25eea34fefbee0c
parent8e56338d7d0ee38ecae86d35dae43020356acca1
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 <wangsl.fnst@cn.fujitsu.com>
Signed-off-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/extent-tree.c