diff options
author | David Sterba <dsterba@suse.com> | 2018-03-16 02:21:22 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-03-31 02:01:06 +0200 |
commit | a32bf9a30201f13097428a3327c7c67f678c760c (patch) | |
tree | 74d03a6fbc41c7c46eba8d19047eba0bb0d37ed0 /fs/btrfs/extent-tree.c | |
parent | a4666e688f6fbf532c6c16259bea775ee690e4b7 (diff) | |
download | lwn-a32bf9a30201f13097428a3327c7c67f678c760c.tar.gz lwn-a32bf9a30201f13097428a3327c7c67f678c760c.zip |
btrfs: use lockdep_assert_held for mutexes
Using lockdep_assert_held is preferred, replace mutex_is_locked.
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/extent-tree.c')
-rw-r--r-- | fs/btrfs/extent-tree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index 72f6c03445b6..f30548d7e0d2 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c @@ -4545,7 +4545,7 @@ void check_system_chunk(struct btrfs_trans_handle *trans, * Needed because we can end up allocating a system chunk and for an * atomic and race free space reservation in the chunk block reserve. */ - ASSERT(mutex_is_locked(&fs_info->chunk_mutex)); + lockdep_assert_held(&fs_info->chunk_mutex); info = __find_space_info(fs_info, BTRFS_BLOCK_GROUP_SYSTEM); spin_lock(&info->lock); |