]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
gfs2: Truncate address space when flipping GFS2_DIF_JDATA flag
authorAndreas Gruenbacher <agruenba@redhat.com>
Mon, 13 Jan 2025 18:31:28 +0000 (19:31 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 1 Feb 2025 17:24:00 +0000 (18:24 +0100)
commit4e3ded34f3f3c9d7ed2aac7be8cf51153646574a
tree11d216f2ce918d7c50d1abca6466a1c84836e437
parent322948a57582d4b07961eb3fdf89f3256ca9c760
gfs2: Truncate address space when flipping GFS2_DIF_JDATA flag

commit 7c9d9223802fbed4dee1ae301661bf346964c9d2 upstream.

Truncate an inode's address space when flipping the GFS2_DIF_JDATA flag:
depending on that flag, the pages in the address space will either use
buffer heads or iomap_folio_state structs, and we cannot mix the two.

Reported-by: Kun Hu <huk23@m.fudan.edu.cn>, Jiaji Qin <jjtan24@m.fudan.edu.cn>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/gfs2/file.c