[PATCH 21/25] block/fbatch: no lru_add_drain_all() in invalidate_bdev()

From: Hugh Dickins

Date: Mon Aug 24 2026 - 10:44:22 EST


invalidate_bdev() has no good reason to lru_add_drain_all(), now that the
per-cpu fbatch references are gone; but keep doing invalidate_bh_lrus().

Signed-off-by: Hugh Dickins <hughd@xxxxxxxxxx>
---
block/bdev.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/block/bdev.c b/block/bdev.c
index cd8323083740..853545b29b7f 100644
--- a/block/bdev.c
+++ b/block/bdev.c
@@ -97,7 +97,6 @@ void invalidate_bdev(struct block_device *bdev)

if (mapping->nrpages) {
invalidate_bh_lrus();
- lru_add_drain_all(); /* make sure all lru add caches are flushed */
invalidate_mapping_pages(mapping, 0, -1);
}
}
--
2.51.0