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)
committerBob Peterson <rpeterso@redhat.com>
Mon, 9 Nov 2015 15:38:02 +0000 (09:38 -0600)
commit31dddd9eb9ebae9a2a9b502750e9e481d752180a
tree50f32f0ae20f76801cfd4393dd0387a712ad1f22
parentc36b97e9430defab4b52ee370c18745343d92f6d
GFS2: Fix rgrp end rounding problem for bsize < page size

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>
fs/gfs2/rgrp.c