Message ID | a78162a318c70a76a473b117d2c385d8f2b88517.1729784713.git.fdmanana@suse.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | btrfs: convert delayed head refs to xarray and cleanups | expand |
diff --git a/fs/btrfs/delayed-ref.c b/fs/btrfs/delayed-ref.c index 3aeb2c79c1ae..a8cf76f44b2b 100644 --- a/fs/btrfs/delayed-ref.c +++ b/fs/btrfs/delayed-ref.c @@ -384,6 +384,8 @@ static struct btrfs_delayed_ref_head *find_first_ref_head( struct rb_node *n; struct btrfs_delayed_ref_head *entry; + lockdep_assert_held(&dr->lock); + n = rb_first_cached(&dr->href_root); if (!n) return NULL;