fs: Move clearing of mappedtodisk to buffer.c
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 2 Oct 2024 04:01:03 +0000 (05:01 +0100)
committerChristian Brauner <brauner@kernel.org>
Fri, 4 Oct 2024 07:24:24 +0000 (09:24 +0200)
commit9c33d85e34c2a9d24c24d8a4830fa404b851bf39
treeb158d98c7442c818b094a28ab0cb88dae90596d0
parent9852d85ec9d492ebef56dc5f229416c925758edc
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>
fs/buffer.c
mm/truncate.c