diff options
author | 2023-06-12 22:01:34 +0100 | |
---|---|---|
committer | 2023-06-19 16:19:31 -0700 | |
commit | fe181377a23cce5987fc32f1877cfcd223561609 (patch) | |
tree | 72e706063b9f7ec7c31d071435808b4e79f25012 /mm/page-writeback.c | |
parent | buffer: make block_write_full_page() handle large folios correctly (diff) | |
download | wireguard-linux-fe181377a23cce5987fc32f1877cfcd223561609.tar.xz wireguard-linux-fe181377a23cce5987fc32f1877cfcd223561609.zip |
buffer: convert block_page_mkwrite() to use a folio
If any page in a folio is dirtied, dirty the entire folio. Removes a
number of hidden calls to compound_head() and references to page->mapping
and page->index. Fixes a pre-existing bug where we could mark a folio as
dirty if the file is truncated to a multiple of the page size just as we
take the page fault. I don't believe this bug has any bad effect, it's
just inefficient.
Link: https://lkml.kernel.org/r/20230612210141.730128-8-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: Andreas Gruenbacher <agruenba@redhat.com>
Cc: Bob Peterson <rpeterso@redhat.com>
Cc: Hannes Reinecke <hare@suse.com>
Cc: Luis Chamberlain <mcgrof@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/page-writeback.c')
0 files changed, 0 insertions, 0 deletions