mm: convert pagecache_isize_extended to use a folio
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Fri, 5 Apr 2024 18:00:36 +0000 (19:00 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 26 Apr 2024 03:56:43 +0000 (20:56 -0700)
commit2ebe90dab9808a15e5d1c973e7d3ddaee05ddbd3
treea908cda47881da7092b4960dd9a9d74bf2803bb8
parent55d134a7b499c77e7cfd0ee41046f3c376e791e5
mm: convert pagecache_isize_extended to use a folio

Remove four hidden calls to compound_head().  Also exit early if the
filesystem block size is >= PAGE_SIZE instead of just equal to PAGE_SIZE.

Link: https://lkml.kernel.org/r/20240405180038.2618624-1-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Pankaj Raghav <p.raghav@samsung.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/truncate.c