bcachefs: improve behaviour of btree_cache_scan()
authorDaniel Hill <daniel@gluo.nz>
Thu, 6 Oct 2022 02:53:36 +0000 (15:53 +1300)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:44 +0000 (17:09 -0400)
commitb5ac23c465c4ef8e94f6f2c9f2333193dccf9fc3
treea7da2acca26f1b9ed1248ae4daede7a7556d5ec6
parentbd954215cad1dbe4304736e6968d8a0c10d1e048
bcachefs: improve behaviour of btree_cache_scan()

Appending new nodes to the end of the list means we're more likely to
evict old entries when btree_cache_scan() is started.

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