public inbox for cluster-cvs@sourceware.org help / color / mirror / Atom feed
From: Steven Whitehouse <swhiteho@fedoraproject.org> To: cluster-cvs-relay@redhat.com Subject: gfs2-utils: master - libgfs2: DIV_RU Macro bites the dust Date: Tue, 27 Jan 2009 15:19:00 -0000 [thread overview] Message-ID: <20090127151820.ACA47C024D@lists.fedorahosted.org> (raw) Gitweb: http://git.fedorahosted.org/git/gfs2-utils.git?p=gfs2-utils.git;a=commitdiff;h=91c3e9a69ed70d3d522f5b47015da5e5868722ec Commit: 91c3e9a69ed70d3d522f5b47015da5e5868722ec Parent: f53e675305f33c91bf78abad58be77b11e3fa89f Author: Steven Whitehouse <swhiteho@redhat.com> AuthorDate: Tue Jan 27 14:17:36 2009 +0000 Committer: Steven Whitehouse <swhiteho@redhat.com> CommitterDate: Tue Jan 27 14:17:36 2009 +0000 libgfs2: DIV_RU Macro bites the dust This was only used internally, so I've moved it to the files where it is needed. Signed-off-by: Steven Whitehouse <swhiteho@redhat.com> --- gfs2/libgfs2/fs_geometry.c | 2 ++ gfs2/libgfs2/libgfs2.h | 2 -- gfs2/libgfs2/misc.c | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/gfs2/libgfs2/fs_geometry.c b/gfs2/libgfs2/fs_geometry.c index 2d9b8a7..c855214 100644 --- a/gfs2/libgfs2/fs_geometry.c +++ b/gfs2/libgfs2/fs_geometry.c @@ -12,6 +12,8 @@ #include <linux/types.h> #include "libgfs2.h" +#define DIV_RU(x, y) (((x) + (y) - 1) / (y)) + /** * how_many_rgrps - figure out how many RG to put in a subdevice * @w: the command line diff --git a/gfs2/libgfs2/libgfs2.h b/gfs2/libgfs2/libgfs2.h index db24bb9..b37fd0d 100644 --- a/gfs2/libgfs2/libgfs2.h +++ b/gfs2/libgfs2/libgfs2.h @@ -79,8 +79,6 @@ static __inline__ __attribute__((noreturn)) void die(const char *fmt, ...) exit(-1); } -#define DIV_RU(x, y) (((x) + (y) - 1) / (y)) - struct device { uint64_t start; uint64_t length; diff --git a/gfs2/libgfs2/misc.c b/gfs2/libgfs2/misc.c index 72b9eef..2cd6e46 100644 --- a/gfs2/libgfs2/misc.c +++ b/gfs2/libgfs2/misc.c @@ -20,6 +20,8 @@ #define PAGE_SIZE (4096) #define SYS_BASE "/sys/fs/gfs2" /* FIXME: Look in /proc/mounts to find this */ +#define DIV_RU(x, y) (((x) + (y) - 1) / (y)) + static char sysfs_buf[PAGE_SIZE]; uint32_t compute_heightsize(struct gfs2_sbd *sdp, uint64_t *heightsize,
reply other threads:[~2009-01-27 15:19 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=20090127151820.ACA47C024D@lists.fedorahosted.org \ --to=swhiteho@fedoraproject.org \ --cc=cluster-cvs-relay@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: linkBe 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 read-only IMAP folder(s) and NNTP newsgroup(s).