]> git.baikalelectronics.ru Git - kernel.git/commit
gfs2: jdata writepage fix
authorAndreas Gruenbacher <agruenba@redhat.com>
Wed, 1 Feb 2023 14:08:50 +0000 (15:08 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 11 Mar 2023 15:43:49 +0000 (16:43 +0100)
commit7bc0b79fb8379164b594e347ae348c96ca384339
treed5f9c793d784ed03a6d8b4845880f2e18e17ac06
parent942e1ed82457dfa20a0da5e364fc09606e758823
gfs2: jdata writepage fix

[ 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: a9ff53c3558c ("[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>
fs/gfs2/aops.c