summaryrefslogtreecommitdiff
path: root/fs/btrfs/locking.h
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-04-20 11:28:27 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-04-20 11:28:27 +0300
commit616e143c9fd88562b4d2cb235834c620fe65ba22 (patch)
treedb2f3fc5db49af8cbc0cd4439cd19b44972d6f66 /fs/btrfs/locking.h
parent932316d50d55fc2815f352cc873c3143bfe54372 (diff)
parentd12acd7bc3d4ca813dc2360e6f5ca6bb1682c290 (diff)
downloadlinux-616e143c9fd88562b4d2cb235834c620fe65ba22.tar.xz
Merge v6.14.3
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/btrfs/locking.h')
-rw-r--r--fs/btrfs/locking.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/btrfs/locking.h b/fs/btrfs/locking.h
index 35036b151bf5..c69e57ff804b 100644
--- a/fs/btrfs/locking.h
+++ b/fs/btrfs/locking.h
@@ -199,8 +199,13 @@ static inline void btrfs_assert_tree_write_locked(struct extent_buffer *eb)
{
lockdep_assert_held_write(&eb->lock);
}
+static inline void btrfs_assert_tree_read_locked(struct extent_buffer *eb)
+{
+ lockdep_assert_held_read(&eb->lock);
+}
#else
static inline void btrfs_assert_tree_write_locked(struct extent_buffer *eb) { }
+static inline void btrfs_assert_tree_read_locked(struct extent_buffer *eb) { }
#endif
void btrfs_unlock_up_safe(struct btrfs_path *path, int level);