bcachefs: Don't set btree nodes as accessed on fill
authorKent Overstreet <kent.overstreet@linux.dev>
Tue, 13 May 2025 18:27:01 +0000 (14:27 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Wed, 14 May 2025 21:05:19 +0000 (17:05 -0400)
commit19b22d04cd44ded1ea5af7849aec9cbf4021c852
treed107c33d1fbd60acf9b485f190ab054b43e05372
parent7b6759b1991d427cf9a562b2891b8c3e87a19c76
bcachefs: Don't set btree nodes as accessed on fill

Prevent jobs that do lots of scanning (i.e. evacuatee, scrub) from
causing OOMs.

The shrinker code seems to be having issues when it doesn't do any
freeing because it's just flipping off the acccessed bit - and the
accessed bit shouldn't be set on first use anyways.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/btree_cache.c