]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
gfs2: jdata writepage fix
authorAndreas Gruenbacher <agruenba@redhat.com>
Wed, 1 Feb 2023 14:08:50 +0000 (15:08 +0100)
committerAndrea Righi <andrea.righi@canonical.com>
Tue, 14 Mar 2023 15:46:49 +0000 (16:46 +0100)
commitd3bde33a70bf682e5425b35feae1f7cd451a5526
treed9e7362a59686bce4ee3a79709b5a23b1175140b
parentbc13e9ded8074f623ed574deaa6a235a02fc2ac1
gfs2: jdata writepage fix

BugLink: https://bugs.launchpad.net/bugs/2011425
[ Upstream commit cbb60951ce18c9b6e91d2eb97deb41d8ff616622 ]

The ->writepage() and ->writepages() operations are supposed to write
entire pages.  However, on filesystems with a block size smaller than
PAGE_SIZE, __gfs2_jdata_writepage() only adds the first block to the
current transaction instead of adding the entire page.  Fix that.

Fixes: 18ec7d5c3f43 ("[GFS2] Make journaled data files identical to normal files on disk")
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
fs/gfs2/aops.c