gfs2: Eliminate redundant ip->i_rgd
authorAndreas Gruenbacher <agruenba@redhat.com>
Thu, 21 Jun 2018 12:42:37 +0000 (07:42 -0500)
committerAndreas Gruenbacher <agruenba@redhat.com>
Thu, 5 Jul 2018 15:47:16 +0000 (17:47 +0200)
commitb7eba890a228f591fea2889b901267ba5de7839b
treee05207ea69e56da2ccf10b50d02f7666c1ee62be
parent03f8c41c73da849ec2b73aa678ce6380e8318920
gfs2: Eliminate redundant ip->i_rgd

GFS2 remembers the last rgrp used for allocations in ip->i_rgd.
However, block allocations are made by way of a reservations structure,
ip->i_res, which keeps the last rgrp in ip->i_res.rs_rgd, and ip->i_res
is kept in sync with ip->i_res.rs_rgd, so it's redundant.  Get rid of
ip->i_rgd and just use ip->i_res.rs_rgd in its place.

Based on patches by Robert Peterson.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
fs/gfs2/incore.h
fs/gfs2/rgrp.c
fs/gfs2/super.c
fs/gfs2/trans.h