From 3796d335356acccd03282547d852f41e48063766 Mon Sep 17 00:00:00 2001 From: Jeff Mahoney Date: Thu, 16 Jun 2016 11:30:29 -0400 Subject: btrfs: root->fs_info cleanup, lock/unlock_chunks Signed-off-by: Jeff Mahoney Signed-off-by: David Sterba --- fs/btrfs/disk-io.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fs/btrfs/disk-io.c') diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index 3d4fb99d9e4f..5abf3afa6ea5 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c @@ -3998,7 +3998,7 @@ void close_ctree(struct btrfs_fs_info *fs_info) __btrfs_free_block_rsv(root->orphan_block_rsv); root->orphan_block_rsv = NULL; - lock_chunks(root); + lock_chunks(root->fs_info); while (!list_empty(&fs_info->pinned_chunks)) { struct extent_map *em; @@ -4007,7 +4007,7 @@ void close_ctree(struct btrfs_fs_info *fs_info) list_del_init(&em->list); free_extent_map(em); } - unlock_chunks(root); + unlock_chunks(root->fs_info); } int btrfs_buffer_uptodate(struct extent_buffer *buf, u64 parent_transid, -- cgit v1.2.3-70-g09d2