Skip to content

Commit f3295ec

Browse files
uzuki314behlendorf
authored andcommitted
range_tree: drop duplicate zfs_ prefix from rs_set_fill_raw
Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Alexander Motin <[email protected]> Signed-off-by: hoshinomori <[email protected]> Closes #17800
1 parent 35ec4b1 commit f3295ec

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

include/sys/range_tree.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -238,8 +238,7 @@ zfs_rs_set_end_raw(zfs_range_seg_t *rs, zfs_range_tree_t *rt, uint64_t end)
238238
}
239239

240240
static inline void
241-
zfs_zfs_rs_set_fill_raw(zfs_range_seg_t *rs, zfs_range_tree_t *rt,
242-
uint64_t fill)
241+
zfs_rs_set_fill_raw(zfs_range_seg_t *rs, zfs_range_tree_t *rt, uint64_t fill)
243242
{
244243
ASSERT3U(rt->rt_type, <=, ZFS_RANGE_SEG_NUM_TYPES);
245244
switch (rt->rt_type) {
@@ -277,7 +276,7 @@ static inline void
277276
zfs_rs_set_fill(zfs_range_seg_t *rs, zfs_range_tree_t *rt, uint64_t fill)
278277
{
279278
ASSERT(IS_P2ALIGNED(fill, 1ULL << rt->rt_shift));
280-
zfs_zfs_rs_set_fill_raw(rs, rt, fill >> rt->rt_shift);
279+
zfs_rs_set_fill_raw(rs, rt, fill >> rt->rt_shift);
281280
}
282281

283282
typedef void zfs_range_tree_func_t(void *arg, uint64_t start, uint64_t size);

module/zfs/range_tree.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ zfs_range_tree_remove_impl(zfs_range_tree_t *rt, uint64_t start, uint64_t size,
585585
* the size, since we do not support removing partial segments
586586
* of range trees with gaps.
587587
*/
588-
zfs_zfs_rs_set_fill_raw(rs, rt, zfs_rs_get_end_raw(rs, rt) -
588+
zfs_rs_set_fill_raw(rs, rt, zfs_rs_get_end_raw(rs, rt) -
589589
zfs_rs_get_start_raw(rs, rt));
590590
zfs_range_tree_stat_incr(rt, &rs_tmp);
591591

0 commit comments

Comments
 (0)