gfs2: Minor gfs2_write_jdata_batch PAGE_SIZE cleanup
authorAndreas Gruenbacher <agruenba@redhat.com>
Tue, 18 Jul 2023 13:49:08 +0000 (15:49 +0200)
committerAndreas Gruenbacher <agruenba@redhat.com>
Mon, 6 Nov 2023 00:51:25 +0000 (01:51 +0100)
commitd6d64dac1d3967f3e951ae1cf2753181b78f2f89
treefaebe55c4bfcf64a3fd0d74a5f8df3caad6391bf
parent4c7b3f7fb7c8c66d669d107e717f9de41ef81e92
gfs2: Minor gfs2_write_jdata_batch PAGE_SIZE cleanup

In gfs2_write_jdata_batch(), to compute the number of blocks, compute
the total size of the folio batch instead of the number of pages it
contains.  Not a functional change.

Note that we don't currently allow mounting filesystems with a block
size bigger than the page size.  We could change that after converting
the page cache to folios.  The page cache would then only contain
block-size or bigger folios, so rounding wouldn't become an issue here.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
fs/gfs2/aops.c