Linux/linux 2741b67fs/gfs2 bmap.c

gfs2: Fix rounding error in gfs2_iomap_page_prepare

The pos and len arguments to the iomap page_prepare callback are not
block aligned, so we need to take that into account when computing the
number of blocks.

Fixes: d0a22a4b03b8 ("gfs2: Fix iomap write page reclaim deadlock")
Signed-off-by: Andreas Gruenbacher <agruenba at redhat.com>
DeltaFile
+4-1fs/gfs2/bmap.c
+4-11 files

UnifiedSplitRaw