Gitweb:
http://git.fedorahosted.org/git/gfs2-utils.git?p=gfs2-utils.git;a=commitd...
Commit: 3a18369266fdaf9fa2e68824da77a2886c6a3b63
Parent: d427382d1a9fe110357e886d99d02f639593641d
Author: Steven Whitehouse <swhiteho(a)redhat.com>
AuthorDate: Thu Dec 1 14:23:26 2011 +0000
Committer: Steven Whitehouse <swhiteho(a)redhat.com>
CommitterDate: Thu Dec 1 14:23:26 2011 +0000
libgfs2: More unused bits (re)moved
Some headers and constants which are not required are removed
and, one set of of constants which is only used internally to
a single file in the library are moved to that file.
Signed-off-by: Steven Whitehouse <swhiteho(a)redhat.com>
---
gfs2/libgfs2/fs_ops.c | 4 ++++
gfs2/libgfs2/libgfs2.h | 11 -----------
2 files changed, 4 insertions(+), 11 deletions(-)
diff --git a/gfs2/libgfs2/fs_ops.c b/gfs2/libgfs2/fs_ops.c
index fe7fce6..e2e64d6 100644
--- a/gfs2/libgfs2/fs_ops.c
+++ b/gfs2/libgfs2/fs_ops.c
@@ -14,6 +14,10 @@
#include <linux/types.h>
#include "libgfs2.h"
+#define DATA (1)
+#define META (2)
+#define DINODE (3)
+
static __inline__ uint64_t *metapointer(struct gfs2_buffer_head *bh,
unsigned int height,
struct metapath *mp)
diff --git a/gfs2/libgfs2/libgfs2.h b/gfs2/libgfs2/libgfs2.h
index c8230d6..ef11221 100644
--- a/gfs2/libgfs2/libgfs2.h
+++ b/gfs2/libgfs2/libgfs2.h
@@ -6,9 +6,6 @@
#include <stdarg.h>
#include <stdio.h>
#include <errno.h>
-#include <unistd.h>
-#include <stdlib.h>
-#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <linux/types.h>
@@ -143,10 +140,6 @@ struct gfs2_inode {
struct gfs2_sbd *i_sbd;
};
-#define BUF_HASH_SHIFT (13) /* # hash buckets = 8K */
-#define BUF_HASH_SIZE (1 << BUF_HASH_SHIFT)
-#define BUF_HASH_MASK (BUF_HASH_SIZE - 1)
-
/* 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 */
@@ -275,10 +268,6 @@ struct metapath {
/* Look at this! Why can't we go bigger than 2GB? */
#define GFS2_MAX_RGSIZE (2048)
-#define DATA (1)
-#define META (2)
-#define DINODE (3)
-
/* bitmap.c */
struct gfs2_bmap {
uint64_t size;