OSDN Git Service

gfs2: stop using generic_writepages in gfs2_ail1_start_one
authorChristoph Hellwig <hch@lst.de>
Fri, 22 Jul 2022 17:59:15 +0000 (10:59 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Fri, 22 Jul 2022 17:59:15 +0000 (10:59 -0700)
commitb2b0a5e978552e348f85ad9c7568b630a5ede659
tree4b849228f7e7f1625d2e950d1d4d843da44e69a3
parentf8189d5d5fbf082786fb91c549f5127f23daec09
gfs2: stop using generic_writepages in gfs2_ail1_start_one

Use filemap_fdatawrite_wbc instead of generic_writepages in
gfs2_ail1_start_one so that the functin can also cope with address_space
operations that only implement ->writepages and to properly account
for cgroup writeback.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Andreas Gruenbacher <agruenba@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
fs/gfs2/log.c