gfs2-utils: RHEL7 - libgfs2: Remove some unused data structures

Andrew Price andyp at fedoraproject.org
Tue Apr 7 21:24:23 UTC 2015


Gitweb:        http://git.fedorahosted.org/git/?p=gfs2-utils.git;a=commitdiff;h=1021c18e8d3053f1a232661d0d2108665bf1afc0
Commit:        1021c18e8d3053f1a232661d0d2108665bf1afc0
Parent:        873b4503359aaea1270144e5a21a8c22b11175ad
Author:        Andrew Price <anprice at redhat.com>
AuthorDate:    Thu Jan 15 19:09:26 2015 +0000
Committer:     Andrew Price <anprice at redhat.com>
CommitterDate: Wed Apr 1 16:52:44 2015 +0100

libgfs2: Remove some unused data structures

struct per_node and some fields of struct master_dir are not being used
at all, remove them.

Signed-off-by: Andrew Price <anprice at redhat.com>
---
 gfs2/libgfs2/libgfs2.h |   21 +--------------------
 1 files changed, 1 insertions(+), 20 deletions(-)

diff --git a/gfs2/libgfs2/libgfs2.h b/gfs2/libgfs2/libgfs2.h
index 374d774..f1f81d3 100644
--- a/gfs2/libgfs2/libgfs2.h
+++ b/gfs2/libgfs2/libgfs2.h
@@ -236,39 +236,20 @@ struct gfs2_inode {
 	struct rgrp_tree *i_rgd; /* The rgrp this inode is in */
 };
 
-/* FIXME not sure that i want to keep a record of the inodes or the
- * contents of them, or both ... if I need to write back to them, it
- * would be easier to hold the inode as well  */
-struct per_node
-{
-	struct gfs2_inode *inum;
-	struct gfs2_inum_range inum_range;
-	struct gfs2_inode *statfs;
-	struct gfs2_statfs_change statfs_change;
-	struct gfs2_inode *unlinked;
-	struct gfs2_inode *quota;
-	struct gfs2_quota_change quota_change;
-};
-
 struct master_dir
 {
 	struct gfs2_inode *inum;
 	uint64_t next_inum;
 	struct gfs2_inode *statfs;
-	struct gfs2_statfs_change statfs_change;
-
-	struct gfs2_rindex rindex;
 	struct gfs2_inode *qinode;
-	struct gfs2_quota quotas;
 
 	struct gfs2_inode       *jiinode;
 	struct gfs2_inode       *riinode;
 	struct gfs2_inode       *rooti;
 	struct gfs2_inode       *pinode;
-	
+
 	struct gfs2_inode **journal;      /* Array of journals */
 	uint32_t journals;                /* Journal count */
-	struct per_node *pn;              /* Array of per_node entries */
 };
 
 struct gfs2_sbd {


More information about the cluster-commits mailing list