diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2022-05-14 06:58:51 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:32 -0400 |
commit | d8a161ad5493016aa6eba8853990456aa78316c9 (patch) | |
tree | c9ae4377cfbe748f12d4e145f41caa511e0e0641 /fs/bcachefs/lru.c | |
parent | facc81479cab081cbcb962bfbe5d61f25230d013 (diff) | |
download | linux-d8a161ad5493016aa6eba8853990456aa78316c9.tar.gz linux-d8a161ad5493016aa6eba8853990456aa78316c9.tar.bz2 linux-d8a161ad5493016aa6eba8853990456aa78316c9.zip |
bcachefs: LRU repair tweaks
- Drop old unneeded parameter for whether we're in initial GC - which
was from when btree updates had to be done differently before we
went RW.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'fs/bcachefs/lru.c')
-rw-r--r-- | fs/bcachefs/lru.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/bcachefs/lru.c b/fs/bcachefs/lru.c index ce23b38382f5..d278331776dd 100644 --- a/fs/bcachefs/lru.c +++ b/fs/bcachefs/lru.c @@ -130,7 +130,7 @@ int bch2_lru_change(struct btree_trans *trans, u64 id, u64 idx, } static int bch2_check_lru_key(struct btree_trans *trans, - struct btree_iter *lru_iter, bool initial) + struct btree_iter *lru_iter) { struct bch_fs *c = trans->c; struct btree_iter iter; @@ -193,7 +193,7 @@ fsck_err: return ret; } -int bch2_check_lrus(struct bch_fs *c, bool initial) +int bch2_check_lrus(struct bch_fs *c) { struct btree_trans trans; struct btree_iter iter; @@ -207,7 +207,7 @@ int bch2_check_lrus(struct bch_fs *c, bool initial) ret = __bch2_trans_do(&trans, NULL, NULL, BTREE_INSERT_NOFAIL| BTREE_INSERT_LAZY_RW, - bch2_check_lru_key(&trans, &iter, initial)); + bch2_check_lru_key(&trans, &iter)); if (ret) break; } |