summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/volumes.c
diff options
context:
space:
mode:
authorNikolay Borisov <nborisov@suse.com>2018-06-20 15:49:07 +0300
committerDavid Sterba <dsterba@suse.com>2018-08-06 13:12:36 +0200
commit451a2c130342125ca44dbbf3b62521c3f0041cfb (patch)
treef5f9ef7bb5fdb26402ba34911ef81d781c109448 /fs/btrfs/volumes.c
parentc216b2039aa06f9be23a9f385cb2d2f6434927d7 (diff)
downloadlinux-451a2c130342125ca44dbbf3b62521c3f0041cfb.tar.gz
linux-451a2c130342125ca44dbbf3b62521c3f0041cfb.tar.bz2
linux-451a2c130342125ca44dbbf3b62521c3f0041cfb.zip
btrfs: Remove fs_info from check_system_chunk
It can be referenced from trans since the function is always called within a transaction. Signed-off-by: Nikolay Borisov <nborisov@suse.com> Reviewed-by: Qu Wenruo <wqu@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/volumes.c')
-rw-r--r--fs/btrfs/volumes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c
index 4a7423294270..9795d5079907 100644
--- a/fs/btrfs/volumes.c
+++ b/fs/btrfs/volumes.c
@@ -2829,7 +2829,7 @@ int btrfs_remove_chunk(struct btrfs_trans_handle *trans,
}
map = em->map_lookup;
mutex_lock(&fs_info->chunk_mutex);
- check_system_chunk(trans, fs_info, map->type);
+ check_system_chunk(trans, map->type);
mutex_unlock(&fs_info->chunk_mutex);
/*