summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent-tree.c
diff options
context:
space:
mode:
authorDavid Sterba2018-03-16 02:21:22 +0100
committerDavid Sterba2018-03-31 02:01:06 +0200
commita32bf9a30201f13097428a3327c7c67f678c760c (patch)
tree74d03a6fbc41c7c46eba8d19047eba0bb0d37ed0 /fs/btrfs/extent-tree.c
parentbtrfs: use lockdep_assert_held for spinlocks (diff)
downloadkernel-qcow2-linux-a32bf9a30201f13097428a3327c7c67f678c760c.tar.gz
kernel-qcow2-linux-a32bf9a30201f13097428a3327c7c67f678c760c.tar.xz
kernel-qcow2-linux-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.c2
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);