Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.92 KB | None | 0 0
  1. diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c
  2. index 9a6d67eec43f..59b2fdfaf866 100644
  3. --- a/fs/btrfs/disk-io.c
  4. +++ b/fs/btrfs/disk-io.c
  5. @@ -4055,7 +4055,8 @@ void close_ctree(struct btrfs_fs_info *fs_info)
  6.          * we must make sure there is not any read request to
  7.          * submit after we stopping all workers.
  8.          */
  9. -       invalidate_inode_pages2(fs_info->btree_inode->i_mapping);
  10. +       ASSERT(atomic_read(&fs_info->btree_inode->i_count));
  11. +       iput(fs_info->btree_inode);
  12.         btrfs_stop_all_workers(fs_info);
  13.  
  14.         btrfs_free_block_groups(fs_info);
  15. @@ -4063,7 +4064,6 @@ void close_ctree(struct btrfs_fs_info *fs_info)
  16.         clear_bit(BTRFS_FS_OPEN, &fs_info->flags);
  17.         free_root_pointers(fs_info, 1);
  18.  
  19. -       iput(fs_info->btree_inode);
  20.  
  21.  #ifdef CONFIG_BTRFS_FS_CHECK_INTEGRITY
  22.         if (btrfs_test_opt(fs_info, CHECK_INTEGRITY))
  23. nborisov@fisk:~/projects/kernel/source$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement