diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-12-06 23:53:59 +0100 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-01-01 17:47:40 +0100 |
commit | a0acc24fedbe067b30f4320daa8d63b404f6ccd9 (patch) | |
tree | 0035e24684df0213a66e6b73e64dd6245f2efc1f /fs/bcachefs/alloc_foreground.c | |
parent | bcachefs: BCH_IOCTL_FSCK_ONLINE (diff) | |
download | linux-a0acc24fedbe067b30f4320daa8d63b404f6ccd9.tar.xz linux-a0acc24fedbe067b30f4320daa8d63b404f6ccd9.zip |
bcachefs: Fix open coded set_btree_iter_dontneed()
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/alloc_foreground.c')
-rw-r--r-- | fs/bcachefs/alloc_foreground.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/bcachefs/alloc_foreground.c b/fs/bcachefs/alloc_foreground.c index a7e6554cc7dd..d99f38c1e7f9 100644 --- a/fs/bcachefs/alloc_foreground.c +++ b/fs/bcachefs/alloc_foreground.c @@ -377,7 +377,7 @@ static struct open_bucket *try_alloc_bucket(struct btree_trans *trans, struct bc ob = __try_alloc_bucket(c, ca, b, watermark, a, s, cl); if (!ob) - iter.path->preserve = false; + set_btree_iter_dontneed(&iter); err: if (iter.trans && iter.path) set_btree_iter_dontneed(&iter); @@ -447,7 +447,7 @@ again: ob = __try_alloc_bucket(trans->c, ca, k.k->p.offset, watermark, a, s, cl); next: - citer.path->preserve = false; + set_btree_iter_dontneed(&citer); bch2_trans_iter_exit(trans, &citer); if (ob) break; @@ -502,7 +502,7 @@ again: ob = try_alloc_bucket(trans, ca, watermark, alloc_cursor, s, k, cl); if (ob) { - iter.path->preserve = false; + set_btree_iter_dontneed(&iter); break; } } |