gfs2: jdata writepage fix
authorAndreas Gruenbacher <agruenba@redhat.com>
Wed, 1 Feb 2023 14:08:50 +0000 (15:08 +0100)
committerAndreas Gruenbacher <agruenba@redhat.com>
Wed, 22 Feb 2023 11:06:20 +0000 (12:06 +0100)
commitcbb60951ce18c9b6e91d2eb97deb41d8ff616622
tree884178cf3d3d7a8755e06d5c6dd82ed958468b6a
parentb66f723bb552ad59c2acb5d45ea45c890f84498b
gfs2: jdata writepage fix

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>
fs/gfs2/aops.c