mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-06 22:58:29 +00:00
btrfs: drop chunk locks at the end of close_ctree
The pinned chunks might be left over so we clean them but at this point of close_ctree, there's noone to race with, the locking can be removed. Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
d3c0bab563
commit
4958aa6821
1 changed files with 0 additions and 2 deletions
|
@ -3944,7 +3944,6 @@ void close_ctree(struct btrfs_fs_info *fs_info)
|
||||||
__btrfs_free_block_rsv(root->orphan_block_rsv);
|
__btrfs_free_block_rsv(root->orphan_block_rsv);
|
||||||
root->orphan_block_rsv = NULL;
|
root->orphan_block_rsv = NULL;
|
||||||
|
|
||||||
mutex_lock(&fs_info->chunk_mutex);
|
|
||||||
while (!list_empty(&fs_info->pinned_chunks)) {
|
while (!list_empty(&fs_info->pinned_chunks)) {
|
||||||
struct extent_map *em;
|
struct extent_map *em;
|
||||||
|
|
||||||
|
@ -3953,7 +3952,6 @@ void close_ctree(struct btrfs_fs_info *fs_info)
|
||||||
list_del_init(&em->list);
|
list_del_init(&em->list);
|
||||||
free_extent_map(em);
|
free_extent_map(em);
|
||||||
}
|
}
|
||||||
mutex_unlock(&fs_info->chunk_mutex);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int btrfs_buffer_uptodate(struct extent_buffer *buf, u64 parent_transid,
|
int btrfs_buffer_uptodate(struct extent_buffer *buf, u64 parent_transid,
|
||||||
|
|
Loading…
Add table
Reference in a new issue