diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2024-02-24 04:43:24 +0100 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-03-14 02:22:25 +0100 |
commit | 69426613cdf0784e29e1a429c1a2f372a6267c43 (patch) | |
tree | 08d9402cd8f82ccb17731096d4bcd5640bd6fe0b /fs/bcachefs/recovery.c | |
parent | bcachefs: journal_keys now uses darray helpers (diff) | |
download | linux-69426613cdf0784e29e1a429c1a2f372a6267c43.tar.xz linux-69426613cdf0784e29e1a429c1a2f372a6267c43.zip |
bcachefs: improve move_gap()
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/recovery.c')
-rw-r--r-- | fs/bcachefs/recovery.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/bcachefs/recovery.c b/fs/bcachefs/recovery.c index d773af23a189..f11e882de02b 100644 --- a/fs/bcachefs/recovery.c +++ b/fs/bcachefs/recovery.c @@ -531,8 +531,7 @@ static int bch2_set_may_go_rw(struct bch_fs *c) * setting journal_key->overwritten: it will be accessed by multiple * threads */ - move_gap(keys->data, keys->nr, keys->size, keys->gap, keys->nr); - keys->gap = keys->nr; + move_gap(keys, keys->nr); set_bit(BCH_FS_may_go_rw, &c->flags); |