Advertisement
Guest User

Untitled

a guest
Aug 10th, 2020
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.05 KB | None | 0 0
  1. diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c
  2. index d7670e2a9f39..41e610991e85 100644
  3. --- a/fs/btrfs/volumes.c
  4. +++ b/fs/btrfs/volumes.c
  5. @@ -4442,12 +4442,13 @@ int btrfs_uuid_scan_kthread(void *data)
  6.                 if (btrfs_root_refs(&root_item) == 0)
  7.                         goto skip;
  8.  
  9. +               btrfs_release_path(path);
  10. +
  11.                 if (!btrfs_is_empty_uuid(root_item.uuid) ||
  12.                     !btrfs_is_empty_uuid(root_item.received_uuid)) {
  13.                         if (trans)
  14.                                 goto update_tree;
  15.  
  16. -                       btrfs_release_path(path);
  17.                         /*
  18.                          * 1 - subvol uuid item
  19.                          * 1 - received_subvol uuid item
  20. @@ -4493,7 +4494,6 @@ int btrfs_uuid_scan_kthread(void *data)
  21.                                 break;
  22.                 }
  23.  
  24. -               btrfs_release_path(path);
  25.                 if (key.offset < (u64)-1) {
  26.                         key.offset++;
  27.                 } else if (key.type < BTRFS_ROOT_ITEM_KEY) {
  28.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement