bcachefs: Improve bkey_cached_lock_for_evict()
authorKent Overstreet <kent.overstreet@linux.dev>
Sun, 8 Jan 2023 05:05:30 +0000 (00:05 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:49 +0000 (17:09 -0400)
commit7af365eb3694b7ef7ce2b90b6de4b830a49cdda4
tree84e3bbbc7f255cabc3480a9178dcbc858e3f164f
parentc82ed3047b8875b07b19e6e287c48f27a37b756f
bcachefs: Improve bkey_cached_lock_for_evict()

We don't need a write lock to check if a key is dirty.

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