diff options
author | Jeff Mahoney <jeffm@suse.com> | 2016-06-16 11:30:29 -0400 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-12-06 16:06:58 +0100 |
commit | 3796d335356acccd03282547d852f41e48063766 (patch) | |
tree | 3f1601a70ba912d2bbb819a08bdf35e3321b5c79 /fs/btrfs/disk-io.c | |
parent | 27965b6c2cad220f6c512334665808bf3d895e5e (diff) |
btrfs: root->fs_info cleanup, lock/unlock_chunks
Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r-- | fs/btrfs/disk-io.c | 4 |
1 files changed, 2 insertions, 2 deletions
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, |