truncate: Skip known-truncated indices
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Fri, 26 Nov 2021 18:25:38 +0000 (13:25 -0500)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Sat, 8 Jan 2022 05:28:41 +0000 (00:28 -0500)
commitccbbf761d440b0d5afcbf232db37435dc38d6161
treec2e7f1109cb100ff5f952134598ef0e539628b19
parent1e84a3d997b74c33491899e31d48774f252213ab
truncate: Skip known-truncated indices

If we've truncated an entire folio, we can skip over all the indices
covered by this folio.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: William Kucharski <william.kucharski@oracle.com>
mm/truncate.c