]> git.baikalelectronics.ru Git - kernel.git/commit
gfs2: Fix rounding error in gfs2_iomap_page_prepare
authorAndreas Gruenbacher <agruenba@redhat.com>
Sat, 8 Jun 2019 12:09:02 +0000 (13:09 +0100)
committerAndreas Gruenbacher <agruenba@redhat.com>
Fri, 14 Jun 2019 16:49:07 +0000 (18:49 +0200)
commit45b0970a0f7cfc2e6b6dbd58747e30810526dc67
tree08eb1d12ae5a2bd73fcb16112781e0cfd6a7a5d7
parent92e359e7ccefe0c4542f7a1eb020e7e929203c14
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: 3e15f885c1cd ("gfs2: Fix iomap write page reclaim deadlock")
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
fs/gfs2/bmap.c