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/volumes.h | |
parent | 27965b6c2cad220f6c512334665808bf3d895e5e (diff) | |
download | blackbird-op-linux-3796d335356acccd03282547d852f41e48063766.tar.gz blackbird-op-linux-3796d335356acccd03282547d852f41e48063766.zip |
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/volumes.h')
-rw-r--r-- | fs/btrfs/volumes.h | 8 |
1 files changed, 4 insertions, 4 deletions
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); |