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/volumes.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'fs/btrfs/volumes.h') diff --git a/fs/btrfs/volumes.h b/fs/btrfs/volumes.h index 859221769696..724d18ca7ff0 100644 --- a/fs/btrfs/volumes.h +++ b/fs/btrfs/volumes.h @@ -532,14 +532,14 @@ void btrfs_update_commit_device_size(struct btrfs_fs_info *fs_info); void btrfs_update_commit_device_bytes_used(struct btrfs_root *root, struct btrfs_transaction *transaction); -static inline void lock_chunks(struct btrfs_root *root) +static inline void lock_chunks(struct btrfs_fs_info *fs_info) { - mutex_lock(&root->fs_info->chunk_mutex); + mutex_lock(&fs_info->chunk_mutex); } -static inline void unlock_chunks(struct btrfs_root *root) +static inline void unlock_chunks(struct btrfs_fs_info *fs_info) { - mutex_unlock(&root->fs_info->chunk_mutex); + mutex_unlock(&fs_info->chunk_mutex); } struct list_head *btrfs_get_fs_uuids(void); -- cgit v1.2.3