cluster-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Andrew Price <anprice@redhat.com>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] [PATCH] libgfs2: Move the BLOCKMAP_* macros into fsck.gfs2
Date: Mon, 19 Aug 2013 16:24:31 +0100	[thread overview]
Message-ID: <1376925871-26531-1-git-send-email-anprice@redhat.com> (raw)

These macros were only being used by fsck.gfs2 so they can safely be
moved into gfs2/fsck/util.h

Signed-off-by: Andrew Price <anprice@redhat.com>
---
 gfs2/fsck/util.h       | 4 ++++
 gfs2/libgfs2/libgfs2.h | 4 ----
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/gfs2/fsck/util.h b/gfs2/fsck/util.h
index 580acd8..276c726 100644
--- a/gfs2/fsck/util.h
+++ b/gfs2/fsck/util.h
@@ -23,6 +23,10 @@ extern void dup_listent_delete(struct duptree *dt, struct inode_with_dups *id);
 
 extern const char *reftypes[ref_types + 1];
 
+#define BLOCKMAP_SIZE4(size) ((size) >> 1)
+#define BLOCKMAP_BYTE_OFFSET4(x) (((x) & 0x0000000000000001) << 2)
+#define BLOCKMAP_MASK4 (0xf)
+
 static inline uint8_t block_type(uint64_t bblock)
 {
 	static unsigned char *byte;
diff --git a/gfs2/libgfs2/libgfs2.h b/gfs2/libgfs2/libgfs2.h
index dd7420b..1548cf3 100644
--- a/gfs2/libgfs2/libgfs2.h
+++ b/gfs2/libgfs2/libgfs2.h
@@ -68,10 +68,6 @@ __BEGIN_DECLS
 
 #endif  /*  __BYTE_ORDER == __LITTLE_ENDIAN  */
 
-#define BLOCKMAP_SIZE4(size) (size >> 1)
-#define BLOCKMAP_BYTE_OFFSET4(x) ((x & 0x0000000000000001) << 2)
-#define BLOCKMAP_MASK4 (0xf)
-
 enum lgfs2_meta_type {
 	LGFS2_MT_GFS2_SB = 0,
 	LGFS2_MT_GFS_SB = 1,
-- 
1.8.3.1



                 reply	other threads:[~2013-08-19 15:24 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1376925871-26531-1-git-send-email-anprice@redhat.com \
    --to=anprice@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).