diff options
author | David Sterba <dsterba@suse.com> | 2016-10-04 19:34:27 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-12-06 16:07:00 +0100 |
commit | 34441361c4f52a5f6e41d8de8e5debbeb415dbf0 (patch) | |
tree | 1ecdf96fc87c0c297106555b2ad7e1f4e74b2952 /fs/btrfs/disk-io.c | |
parent | 3a45bb207ee2c5548ebf6f5fcc7d249e141f15e8 (diff) | |
download | linux-34441361c4f52a5f6e41d8de8e5debbeb415dbf0.tar.bz2 |
btrfs: opencode chunk locking, remove helpers
The helpers are trivial and we don't use them consistently.
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 196f1aafcea9..848d5e1c0585 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c @@ -4003,7 +4003,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(fs_info); + mutex_lock(&fs_info->chunk_mutex); while (!list_empty(&fs_info->pinned_chunks)) { struct extent_map *em; @@ -4012,7 +4012,7 @@ void close_ctree(struct btrfs_fs_info *fs_info) list_del_init(&em->list); free_extent_map(em); } - unlock_chunks(fs_info); + mutex_unlock(&fs_info->chunk_mutex); } int btrfs_buffer_uptodate(struct extent_buffer *buf, u64 parent_transid, |