aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/rgrp.c
diff options
context:
space:
mode:
authorBob Peterson <rpeterso@redhat.com>2012-05-18 09:28:23 -0400
committerSteven Whitehouse <swhiteho@redhat.com>2012-06-06 06:20:22 -0400
commit5407e24229408d7586ee451a384fc13e4a2332be (patch)
tree7534b0d0fc69de50b6156ec4e384a71acf01dea1 /fs/gfs2/rgrp.c
parent0a305e496059a113f93bdd3ad27a5aaa917fe34d (diff)
GFS2: Fold quota data into the reservations struct
This patch moves the ancillary quota data structures into the block reservations structure. This saves GFS2 some time and effort in allocating and deallocating the qadata structure. Signed-off-by: Bob Peterson <rpeterso@redhat.com> Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/rgrp.c')
-rw-r--r--fs/gfs2/rgrp.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/fs/gfs2/rgrp.c b/fs/gfs2/rgrp.c
index e944fefbc9a8..9eca6a9cff8f 100644
--- a/fs/gfs2/rgrp.c
+++ b/fs/gfs2/rgrp.c
@@ -1007,25 +1007,6 @@ out:
1007} 1007}
1008 1008
1009/** 1009/**
1010 * gfs2_qadata_get - get the struct gfs2_qadata structure for an inode
1011 * @ip: the incore GFS2 inode structure
1012 *
1013 * Returns: the struct gfs2_qadata
1014 */
1015
1016struct gfs2_qadata *gfs2_qadata_get(struct gfs2_inode *ip)
1017{
1018 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode);
1019 int error;
1020 BUG_ON(ip->i_qadata != NULL);
1021 ip->i_qadata = kzalloc(sizeof(struct gfs2_qadata), GFP_NOFS);
1022 error = gfs2_rindex_update(sdp);
1023 if (error)
1024 fs_warn(sdp, "rindex update returns %d\n", error);
1025 return ip->i_qadata;
1026}
1027
1028/**
1029 * try_rgrp_fit - See if a given reservation will fit in a given RG 1010 * try_rgrp_fit - See if a given reservation will fit in a given RG
1030 * @rgd: the RG data 1011 * @rgd: the RG data
1031 * @ip: the inode 1012 * @ip: the inode