diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-05-14 00:21:55 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-23 00:10:01 +0300 |
commit | d598a9b7e27158d3b6972077e2f7296f279c2e8b (patch) | |
tree | ba1c7411139dd9d8bbafc87bbbefcc79fcbbaffb /fs/bcachefs/bkey.c | |
parent | 73da30e8e0f8ffcc91691934f202ab6e2f985604 (diff) | |
download | linux-d598a9b7e27158d3b6972077e2f7296f279c2e8b.tar.xz |
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/bkey.c')
-rw-r--r-- | fs/bcachefs/bkey.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/bkey.c b/fs/bcachefs/bkey.c index abb444192749..ee7ba700e75f 100644 --- a/fs/bcachefs/bkey.c +++ b/fs/bcachefs/bkey.c @@ -360,7 +360,7 @@ bool bch2_bkey_pack(struct bkey_packed *out, const struct bkey_i *in, memmove_u64s((u64 *) out + format->key_u64s, &in->v, bkey_val_u64s(&in->k)); - memcpy_u64s(out, &tmp, format->key_u64s); + memcpy_u64s_small(out, &tmp, format->key_u64s); return true; } |