Lines Matching refs:extent_buffer
15 struct extent_buffer;
165 void btrfs_tree_lock_nested(struct extent_buffer *eb, enum btrfs_lock_nesting nest);
167 static inline void btrfs_tree_lock(struct extent_buffer *eb) in btrfs_tree_lock()
172 void btrfs_tree_unlock(struct extent_buffer *eb);
174 void btrfs_tree_read_lock_nested(struct extent_buffer *eb, enum btrfs_lock_nesting nest);
176 static inline void btrfs_tree_read_lock(struct extent_buffer *eb) in btrfs_tree_read_lock()
181 void btrfs_tree_read_unlock(struct extent_buffer *eb);
182 int btrfs_try_tree_read_lock(struct extent_buffer *eb);
183 int btrfs_try_tree_write_lock(struct extent_buffer *eb);
184 struct extent_buffer *btrfs_lock_root_node(struct btrfs_root *root);
185 struct extent_buffer *btrfs_read_lock_root_node(struct btrfs_root *root);
186 struct extent_buffer *btrfs_try_read_lock_root_node(struct btrfs_root *root);
189 static inline void btrfs_assert_tree_write_locked(struct extent_buffer *eb) in btrfs_assert_tree_write_locked()
194 static inline void btrfs_assert_tree_write_locked(struct extent_buffer *eb) { } in btrfs_assert_tree_write_locked()
199 static inline void btrfs_tree_unlock_rw(struct extent_buffer *eb, int rw) in btrfs_tree_unlock_rw()
224 void btrfs_set_buffer_lockdep_class(u64 objectid, struct extent_buffer *eb, int level);
225 void btrfs_maybe_reset_lockdep_class(struct btrfs_root *root, struct extent_buffer *eb);
228 struct extent_buffer *eb, int level) in btrfs_set_buffer_lockdep_class()
232 struct extent_buffer *eb) in btrfs_maybe_reset_lockdep_class()