mirror of
https://github.com/torvalds/linux.git
synced 2026-06-09 07:03:37 +02:00
Btrfs: handle EAGAIN case properly in btrfs_drop_snapshot()
commit 90515e7f5d upstream.
We may return early in btrfs_drop_snapshot(), we shouldn't
call btrfs_std_err() for this case, fix it.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
85c3c54bf9
commit
5c61a3d3ff
|
|
@ -7491,7 +7491,7 @@ int btrfs_drop_snapshot(struct btrfs_root *root,
|
|||
*/
|
||||
if (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 New Issue
Block a user