]> git.baikalelectronics.ru Git - kernel.git/commit
gfs2: Clean up out-of-bounds check in gfs2_rbm_from_block
authorAndreas Gruenbacher <agruenba@redhat.com>
Thu, 11 Oct 2018 17:35:50 +0000 (19:35 +0200)
committerBob Peterson <rpeterso@redhat.com>
Fri, 12 Oct 2018 12:28:39 +0000 (07:28 -0500)
commitfaacdb3e129d65c9858e4386687372c013584584
tree38fa90bb1d04080382f3530cfd370e9197e49220
parent5d31d31d57b5724e85dbc6bbd901206b5f339c84
gfs2: Clean up out-of-bounds check in gfs2_rbm_from_block

We already have a function that checks if a block is within a resource
group, so use that in gfs2_rbm_from_block as well.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Reviewed-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/rgrp.c