diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2022-04-29 05:59:15 +0200 |
---|---|---|
committer | Matthew Wilcox (Oracle) <willy@infradead.org> | 2022-05-08 20:45:57 +0200 |
commit | 6c2ae0d5db57d772a11f2d7399da5e22f94767d6 (patch) | |
tree | e8524508b12038ee8c57452b4bcb4a15bb314a82 /mm/filemap.c | |
parent | mm/readahead: Convert page_cache_async_readahead to take a folio (diff) | |
download | linux-6c2ae0d5db57d772a11f2d7399da5e22f94767d6.tar.xz linux-6c2ae0d5db57d772a11f2d7399da5e22f94767d6.zip |
buffer: Rewrite nobh_truncate_page() to use folios
- Calculate iblock directly instead of using a while loop
- Move has_buffers to the end to remove a backwards jump
- Use __filemap_get_folio() instead of grab_cache_page(), which
removes a spurious FGP_ACCESSED flag.
- Eliminate length and pos variables
- Use folio APIs where they exist
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'mm/filemap.c')
0 files changed, 0 insertions, 0 deletions