mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 02:39:48 +00:00
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>
This commit is contained in:
parent
8e56338d7d
commit
90515e7f5d
1 changed files with 1 additions and 1 deletions
|
@ -7835,7 +7835,7 @@ int btrfs_drop_snapshot(struct btrfs_root *root,
|
|||
*/
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue