diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2024-04-03 16:47:22 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-04-03 17:34:02 -0400 |
commit | 5639fb38cabaa326b8b664d874a46509d4a60bf2 (patch) | |
tree | 3f3aa73ebc9505bede820ce02d7e8a9bad7dfa08 /libbcachefs/eytzinger.c | |
parent | 9f4ed5ce05888b62d1e4417323c553e5d06f4abf (diff) |
Update bcachefs sources to 09d4c2acbf4c bcachefs: reconstruct_inode()
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'libbcachefs/eytzinger.c')
-rw-r--r-- | libbcachefs/eytzinger.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libbcachefs/eytzinger.c b/libbcachefs/eytzinger.c index a064ccff..4ce5e957 100644 --- a/libbcachefs/eytzinger.c +++ b/libbcachefs/eytzinger.c @@ -115,7 +115,7 @@ static void swap_bytes(void *a, void *b, size_t n) struct wrapper { cmp_func_t cmp; - swap_func_t swap_f; + swap_func_t swap; }; /* @@ -125,7 +125,7 @@ struct wrapper { static void do_swap(void *a, void *b, size_t size, swap_r_func_t swap_func, const void *priv) { if (swap_func == SWAP_WRAPPER) { - ((const struct wrapper *)priv)->swap_f(a, b, (int)size); + ((const struct wrapper *)priv)->swap(a, b, (int)size); return; } @@ -174,7 +174,7 @@ void eytzinger0_sort_r(void *base, size_t n, size_t size, int i, c, r; /* called from 'sort' without swap function, let's pick the default */ - if (swap_func == SWAP_WRAPPER && !((struct wrapper *)priv)->swap_f) + if (swap_func == SWAP_WRAPPER && !((struct wrapper *)priv)->swap) swap_func = NULL; if (!swap_func) { @@ -227,7 +227,7 @@ void eytzinger0_sort(void *base, size_t n, size_t size, { struct wrapper w = { .cmp = cmp_func, - .swap_f = swap_func, + .swap = swap_func, }; return eytzinger0_sort_r(base, n, size, _CMP_WRAPPER, SWAP_WRAPPER, &w); |