]> www.infradead.org Git - users/jedix/linux-maple.git/commit
vfs: drop one lock trip in evict()
authorMateusz Guzik <mjguzik@gmail.com>
Tue, 13 Aug 2024 14:36:26 +0000 (16:36 +0200)
committerChristian Brauner <brauner@kernel.org>
Fri, 30 Aug 2024 06:22:38 +0000 (08:22 +0200)
commit57510c58b5832c8cb36516cdba48543133f3ab85
treef06ee8ab8435583768bb8798ddcfbc2f742a79e3
parent3a987b88a42593875f6345188ca33731c7df728c
vfs: drop one lock trip in evict()

Most commonly neither I_LRU_ISOLATING nor I_SYNC are set, but the stock
kernel takes a back-to-back relock trip to check for them.

It probably can be avoided altogether, but for now massage things back
to just one lock acquire.

Signed-off-by: Mateusz Guzik <mjguzik@gmail.com>
Link: https://lore.kernel.org/r/20240813143626.1573445-1-mjguzik@gmail.com
Reviewed-by: Zhihao Cheng <chengzhihao1@huawei.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/fs-writeback.c
fs/inode.c