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/scrub.c | |
parent | a4666e688f6fbf532c6c16259bea775ee690e4b7 (diff) | |
download | talos-op-linux-a32bf9a30201f13097428a3327c7c67f678c760c.tar.gz talos-op-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/scrub.c')
-rw-r--r-- | fs/btrfs/scrub.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/scrub.c b/fs/btrfs/scrub.c index 4ab4a68dbc06..fbc0c0e264af 100644 --- a/fs/btrfs/scrub.c +++ b/fs/btrfs/scrub.c @@ -371,7 +371,7 @@ static struct full_stripe_lock *insert_full_stripe_lock( struct full_stripe_lock *entry; struct full_stripe_lock *ret; - WARN_ON(!mutex_is_locked(&locks_root->lock)); + lockdep_assert_held(&locks_root->lock); p = &locks_root->root.rb_node; while (*p) { @@ -413,7 +413,7 @@ static struct full_stripe_lock *search_full_stripe_lock( struct rb_node *node; struct full_stripe_lock *entry; - WARN_ON(!mutex_is_locked(&locks_root->lock)); + lockdep_assert_held(&locks_root->lock); node = locks_root->root.rb_node; while (node) { |