diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2019-11-20 14:51:30 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:08:32 -0400 |
commit | 5934a0caf2b5dc25a17ee652a95f25c86fffbcd6 (patch) | |
tree | 0bc32be034ad9a2581aaf89b16beff66ff1f28b5 /fs/bcachefs/migrate.c | |
parent | bd7e82ee2ad45540797d3e36dba24f9824e431ed (diff) | |
download | linux-stable-5934a0caf2b5dc25a17ee652a95f25c86fffbcd6.tar.gz linux-stable-5934a0caf2b5dc25a17ee652a95f25c86fffbcd6.tar.bz2 linux-stable-5934a0caf2b5dc25a17ee652a95f25c86fffbcd6.zip |
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/migrate.c')
-rw-r--r-- | fs/bcachefs/migrate.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/bcachefs/migrate.c b/fs/bcachefs/migrate.c index 4dacbd637d02..4b59dcd04cce 100644 --- a/fs/bcachefs/migrate.c +++ b/fs/bcachefs/migrate.c @@ -60,8 +60,7 @@ static int __bch2_dev_usrdata_drop(struct bch_fs *c, unsigned dev_idx, int flags continue; } - bkey_on_stack_realloc(&sk, c, k.k->u64s); - bkey_reassemble(sk.k, k); + bkey_on_stack_reassemble(&sk, c, k); ret = drop_dev_ptrs(c, bkey_i_to_s(sk.k), dev_idx, flags, false); |