aboutsummaryrefslogtreecommitdiffstats
path: root/mm/filemap.c
diff options
context:
space:
mode:
authorJens Axboe <[email protected]>2024-12-20 15:47:44 +0000
committerAndrew Morton <[email protected]>2025-01-26 04:22:43 +0000
commit4a9e23159fd37677efc0c2c53e3b45a5d260a90a (patch)
tree3cf5b0a7b6c605782dd083101cf8d7e2ee06ba83 /mm/filemap.c
parentmm/readahead: add readahead_control->dropbehind member (diff)
downloadkernel-4a9e23159fd37677efc0c2c53e3b45a5d260a90a.tar.gz
kernel-4a9e23159fd37677efc0c2c53e3b45a5d260a90a.zip
mm/truncate: add folio_unmap_invalidate() helper
Add a folio_unmap_invalidate() helper, which unmaps and invalidates a given folio. The caller must already have locked the folio. Embed the old invalidate_complete_folio2() helper in there as well, as nobody else calls it. Use this new helper in invalidate_inode_pages2_range(), rather than duplicate the code there. In preparation for using this elsewhere as well, have it take a gfp_t mask rather than assume GFP_KERNEL is the right choice. This bubbles back to invalidate_complete_folio2() as well. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]> Cc: Brian Foster <[email protected]> Cc: Chris Mason <[email protected]> Cc: Christoph Hellwig <[email protected]> Cc: Johannes Weiner <[email protected]> Cc: Kirill A. Shutemov <[email protected]> Cc: Matthew Wilcox (Oracle) <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'mm/filemap.c')
0 files changed, 0 insertions, 0 deletions