Guest User

Untitled

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