diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-05-13 17:21:55 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:10:01 -0400 |
commit | d598a9b7e27158d3b6972077e2f7296f279c2e8b (patch) | |
tree | ba1c7411139dd9d8bbafc87bbbefcc79fcbbaffb /fs/bcachefs/bset.c | |
parent | 73da30e8e0f8ffcc91691934f202ab6e2f985604 (diff) | |
download | linux-d598a9b7e27158d3b6972077e2f7296f279c2e8b.tar.gz linux-d598a9b7e27158d3b6972077e2f7296f279c2e8b.tar.bz2 linux-d598a9b7e27158d3b6972077e2f7296f279c2e8b.zip |
bcachefs: Use memcpy_u64s_small() for copying keys
Small performance optimization; an open coded loop is better than rep ;
movsq for small copies.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/bset.c')
-rw-r--r-- | fs/bcachefs/bset.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/bset.c b/fs/bcachefs/bset.c index a4c06e856c2e..4d55011551e0 100644 --- a/fs/bcachefs/bset.c +++ b/fs/bcachefs/bset.c @@ -1022,7 +1022,7 @@ void bch2_bset_insert(struct btree *b, set_btree_bset_end(b, t); } - memcpy_u64s(where, src, + memcpy_u64s_small(where, src, bkeyp_key_u64s(f, src)); memcpy_u64s(bkeyp_val(f, where), &insert->v, bkeyp_val_u64s(f, src)); |