GFS2: Fix rgrp end rounding problem for bsize < page size
authorBob Peterson <rpeterso@redhat.com>
Wed, 28 Oct 2015 14:05:31 +0000 (09:05 -0500)
committerBen Hutchings <ben@decadent.org.uk>
Mon, 23 Sep 2019 20:12:07 +0000 (21:12 +0100)
commita7e905eaaf4a08b7ff65f43607f8a64a5175c643
tree464e8b21a56773feb0216f9f4036f0eb2ee00320
parentdbdd553c5135c77ecb9757304b393bd7277433af
GFS2: Fix rgrp end rounding problem for bsize < page size

commit 31dddd9eb9ebae9a2a9b502750e9e481d752180a upstream.

This patch fixes a bug introduced by commit 7005c3e. That patch
tries to map a vm range for resource groups, but the calculation
breaks down when the block size is less than the page size.

Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
fs/gfs2/rgrp.c