diff options
| author | Roger L. Beckermeyer III <[email protected]> | 2024-12-17 21:58:50 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2025-01-13 13:53:18 +0000 |
| commit | 90dde9a13c0020ce140bc8d27c1f4c48a070cc97 (patch) | |
| tree | e8edf1c37628b7a1396e9ec471b74f6f03df11e4 /fs/btrfs/delayed-inode.c | |
| parent | btrfs: don't include linux/rwlock_types.h directly (diff) | |
| download | kernel-90dde9a13c0020ce140bc8d27c1f4c48a070cc97.tar.gz kernel-90dde9a13c0020ce140bc8d27c1f4c48a070cc97.zip | |
rbtree: add rb_find_add_cached() to rbtree.h
Adds rb_find_add_cached() as a helper function for use with red-black
trees. Used in btrfs to reduce boilerplate code.
And since it's a new helper, the cmp() function will require both
parameter to be const rb_node pointers.
Suggested-by: Josef Bacik <[email protected]>
Signed-off-by: Roger L. Beckermeyer III <[email protected]>
Acked-by: Peter Zijlstra (Intel) <[email protected]>
Reviewed-by: Qu Wenruo <[email protected]>
Signed-off-by: Qu Wenruo <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/delayed-inode.c')
0 files changed, 0 insertions, 0 deletions
