Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c
- index 9a6d67eec43f..59b2fdfaf866 100644
- --- a/fs/btrfs/disk-io.c
- +++ b/fs/btrfs/disk-io.c
- @@ -4055,7 +4055,8 @@ void close_ctree(struct btrfs_fs_info *fs_info)
- * we must make sure there is not any read request to
- * submit after we stopping all workers.
- */
- - invalidate_inode_pages2(fs_info->btree_inode->i_mapping);
- + ASSERT(atomic_read(&fs_info->btree_inode->i_count));
- + iput(fs_info->btree_inode);
- btrfs_stop_all_workers(fs_info);
- btrfs_free_block_groups(fs_info);
- @@ -4063,7 +4064,6 @@ void close_ctree(struct btrfs_fs_info *fs_info)
- clear_bit(BTRFS_FS_OPEN, &fs_info->flags);
- free_root_pointers(fs_info, 1);
- - iput(fs_info->btree_inode);
- #ifdef CONFIG_BTRFS_FS_CHECK_INTEGRITY
- if (btrfs_test_opt(fs_info, CHECK_INTEGRITY))
- nborisov@fisk:~/projects/kernel/source$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement