diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2024-10-02 06:01:03 +0200 |
---|---|---|
committer | Christian Brauner <brauner@kernel.org> | 2024-10-04 09:24:24 +0200 |
commit | 9c33d85e34c2a9d24c24d8a4830fa404b851bf39 (patch) | |
tree | b158d98c7442c818b094a28ab0cb88dae90596d0 /mm/truncate.c | |
parent | Linux 6.12-rc1 (diff) | |
download | linux-9c33d85e34c2a9d24c24d8a4830fa404b851bf39.tar.xz linux-9c33d85e34c2a9d24c24d8a4830fa404b851bf39.zip |
fs: Move clearing of mappedtodisk to buffer.c
The mappedtodisk flag is only meaningful for buffer head based
filesystems. It should not be cleared for other filesystems. This allows
us to reuse the mappedtodisk flag to have other meanings in filesystems
that do not use buffer heads.
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Link: https://lore.kernel.org/r/20241002040111.1023018-2-willy@infradead.org
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'mm/truncate.c')
-rw-r--r-- | mm/truncate.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/mm/truncate.c b/mm/truncate.c index 0668cd340a46..870af79fb446 100644 --- a/mm/truncate.c +++ b/mm/truncate.c @@ -166,7 +166,6 @@ static void truncate_cleanup_folio(struct folio *folio) * Hence dirty accounting check is placed after invalidation. */ folio_cancel_dirty(folio); - folio_clear_mappedtodisk(folio); } int truncate_inode_folio(struct address_space *mapping, struct folio *folio) |