diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2019-11-20 22:51:30 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-23 00:08:32 +0300 |
commit | 5934a0caf2b5dc25a17ee652a95f25c86fffbcd6 (patch) | |
tree | 0bc32be034ad9a2581aaf89b16beff66ff1f28b5 /fs/bcachefs/reflink.c | |
parent | bd7e82ee2ad45540797d3e36dba24f9824e431ed (diff) | |
download | linux-5934a0caf2b5dc25a17ee652a95f25c86fffbcd6.tar.xz |
bcachefs: bkey_on_stack_reassemble()
Small helper function.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/reflink.c')
-rw-r--r-- | fs/bcachefs/reflink.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/bcachefs/reflink.c b/fs/bcachefs/reflink.c index 4de65bf70362..2812fa305c0e 100644 --- a/fs/bcachefs/reflink.c +++ b/fs/bcachefs/reflink.c @@ -225,8 +225,7 @@ s64 bch2_remap_range(struct bch_fs *c, break; if (src_k.k->type == KEY_TYPE_extent) { - bkey_on_stack_realloc(&new_src, c, src_k.k->u64s); - bkey_reassemble(new_src.k, src_k); + bkey_on_stack_reassemble(&new_src, c, src_k); src_k = bkey_i_to_s_c(new_src.k); bch2_cut_front(src_iter->pos, new_src.k); |