diff options
author | Andreas Gruenbacher <agruenba@redhat.com> | 2018-06-21 07:42:37 -0500 |
---|---|---|
committer | Andreas Gruenbacher <agruenba@redhat.com> | 2018-07-05 17:47:16 +0200 |
commit | b7eba890a228f591fea2889b901267ba5de7839b (patch) | |
tree | e05207ea69e56da2ccf10b50d02f7666c1ee62be /fs/gfs2/incore.h | |
parent | 03f8c41c73da849ec2b73aa678ce6380e8318920 (diff) | |
download | lwn-b7eba890a228f591fea2889b901267ba5de7839b.tar.gz lwn-b7eba890a228f591fea2889b901267ba5de7839b.zip |
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>
Diffstat (limited to 'fs/gfs2/incore.h')
-rw-r--r-- | fs/gfs2/incore.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/gfs2/incore.h b/fs/gfs2/incore.h index e9cd2cc292d3..b50908211b69 100644 --- a/fs/gfs2/incore.h +++ b/fs/gfs2/incore.h @@ -397,7 +397,6 @@ struct gfs2_inode { struct gfs2_holder i_gh; /* for prepare/commit_write only */ struct gfs2_qadata *i_qadata; /* quota allocation data */ struct gfs2_blkreserv i_res; /* rgrp multi-block reservation */ - struct gfs2_rgrpd *i_rgd; u64 i_goal; /* goal block for allocations */ struct rw_semaphore i_rw_mutex; struct list_head i_ordered; |