diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-03-14 08:35:04 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:57 -0400 |
commit | 2d004446c8044e1660adc53e55d151c607a472d6 (patch) | |
tree | ff4a7146a1b22faacf62e3ecd9d5f9f35dca1759 /fs/bcachefs/movinggc.c | |
parent | 3997989ae1541dea4bb144bd2bf8b7dc6cae743f (diff) | |
download | linux-2d004446c8044e1660adc53e55d151c607a472d6.tar.gz linux-2d004446c8044e1660adc53e55d151c607a472d6.tar.bz2 linux-2d004446c8044e1660adc53e55d151c607a472d6.zip |
bcachefs: bch2_bucket_is_movable() -> BTREE_ITER_CACHED
BTREE_ITER_CACHED should really be the default for cached btrees - this
is an easy mistake to make.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/movinggc.c')
-rw-r--r-- | fs/bcachefs/movinggc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/movinggc.c b/fs/bcachefs/movinggc.c index 6755310f5ebc..4d8d013fe4fc 100644 --- a/fs/bcachefs/movinggc.c +++ b/fs/bcachefs/movinggc.c @@ -46,7 +46,7 @@ static int bch2_bucket_is_movable(struct btree_trans *trans, if (bch2_bucket_is_open(trans->c, bucket.inode, bucket.offset)) return 0; - bch2_trans_iter_init(trans, &iter, BTREE_ID_alloc, bucket, 0); + bch2_trans_iter_init(trans, &iter, BTREE_ID_alloc, bucket, BTREE_ITER_CACHED); k = bch2_btree_iter_peek_slot(&iter); ret = bkey_err(k); bch2_trans_iter_exit(trans, &iter); |