summaryrefslogtreecommitdiff
path: root/fs/xfs/scrub/rcbag_btree.c
diff options
context:
space:
mode:
authorFedor Pchelkin <pchelkin@ispras.ru>2025-07-02 12:39:28 +0300
committerCarlos Maiolino <cem@kernel.org>2025-07-24 17:30:13 +0200
commitedce172444b4f489715a3df2e5d50893e74ce3da (patch)
tree7b40fb5bfd3d30b079690d51bb76f1dcfd2764d3 /fs/xfs/scrub/rcbag_btree.c
parente0a05579b2b61ac2b6db4e3c10796a65fcf2b73a (diff)
xfs: rename diff_two_keys routines
One may think that diff_two_keys routines are used to compute the actual difference between the arguments but they return a result of a three-way-comparison of the passed operands. So it looks more appropriate to denote them as cmp_two_keys. Found by Linux Verification Center (linuxtesting.org). Signed-off-by: Fedor Pchelkin <pchelkin@ispras.ru> Reviewed-by: Darrick J. Wong <djwong@kernel.org> Signed-off-by: Carlos Maiolino <cem@kernel.org>
Diffstat (limited to 'fs/xfs/scrub/rcbag_btree.c')
-rw-r--r--fs/xfs/scrub/rcbag_btree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/scrub/rcbag_btree.c b/fs/xfs/scrub/rcbag_btree.c
index 709356dc6256..c3c7025ca336 100644
--- a/fs/xfs/scrub/rcbag_btree.c
+++ b/fs/xfs/scrub/rcbag_btree.c
@@ -69,7 +69,7 @@ rcbagbt_key_diff(
}
STATIC int64_t
-rcbagbt_diff_two_keys(
+rcbagbt_cmp_two_keys(
struct xfs_btree_cur *cur,
const union xfs_btree_key *k1,
const union xfs_btree_key *k2,
@@ -203,7 +203,7 @@ static const struct xfs_btree_ops rcbagbt_mem_ops = {
.init_ptr_from_cur = xfbtree_init_ptr_from_cur,
.key_diff = rcbagbt_key_diff,
.buf_ops = &rcbagbt_mem_buf_ops,
- .diff_two_keys = rcbagbt_diff_two_keys,
+ .cmp_two_keys = rcbagbt_cmp_two_keys,
.keys_inorder = rcbagbt_keys_inorder,
.recs_inorder = rcbagbt_recs_inorder,
};