diff options
Diffstat (limited to 'fs/btrfs/locking.h')
| -rw-r--r-- | fs/btrfs/locking.h | 5 | 
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); | 
