public inbox for cluster-cvs@sourceware.org help / color / mirror / Atom feed
From: Andrew Price <andyp@fedoraproject.org> To: cluster-cvs-relay@redhat.com Subject: cluster: STABLE3 - fsck.gfs2: Remove compute_height Date: Wed, 10 Jun 2009 16:32:00 -0000 [thread overview] Message-ID: <20090610163135.983CD1201F2@lists.fedorahosted.org> (raw) Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=e7ae325614aa4c8705de4ce77df0132eaa334cc0 Commit: e7ae325614aa4c8705de4ce77df0132eaa334cc0 Parent: 94df30ca63e49afb1e8aeede65df8a3e5bcd0970 Author: Andrew Price <andy@andrewprice.me.uk> AuthorDate: Wed Jun 10 17:09:25 2009 +0100 Committer: Andrew Price <andy@andrewprice.me.uk> CommitterDate: Wed Jun 10 17:24:52 2009 +0100 fsck.gfs2: Remove compute_height Commit 9bc8ca removed the last two calls to this function so it can be removed. Signed-off-by: Andrew Price <andy@andrewprice.me.uk> --- gfs2/fsck/util.c | 31 ------------------------------- gfs2/fsck/util.h | 1 - 2 files changed, 0 insertions(+), 32 deletions(-) diff --git a/gfs2/fsck/util.c b/gfs2/fsck/util.c index af88a7f..eac0e1b 100644 --- a/gfs2/fsck/util.c +++ b/gfs2/fsck/util.c @@ -11,37 +11,6 @@ #include "fs_bits.h" #include "util.h" -/** - * compute_height - * @sdp: - * @sz: - * - */ -int compute_height(struct gfs2_sbd *sdp, uint64_t sz) -{ - unsigned int height; - uint64_t space, old_space; - unsigned int bsize = sdp->sd_sb.sb_bsize; - - if (sz <= (bsize - sizeof(struct gfs2_dinode))) - return 0; - - height = 1; - space = sdp->sd_diptrs * bsize; - - while (sz > space) { - old_space = space; - - height++; - space *= sdp->sd_inptrs; - - if (space / sdp->sd_inptrs != old_space || - space % sdp->sd_inptrs != 0) - break; - } - return height; -} - /* Put out a warm, fuzzy message every second so the user */ /* doesn't think we hung. (This may take a long time). */ void warm_fuzzy_stuff(uint64_t block) diff --git a/gfs2/fsck/util.h b/gfs2/fsck/util.h index 96d7c46..f84ab41 100644 --- a/gfs2/fsck/util.h +++ b/gfs2/fsck/util.h @@ -6,7 +6,6 @@ #define fsck_lseek(fd, off) \ ((lseek((fd), (off), SEEK_SET) == (off)) ? 0 : -1) -int compute_height(struct gfs2_sbd *sdp, uint64_t sz); struct di_info *search_list(osi_list_t *list, uint64_t addr); void warm_fuzzy_stuff(uint64_t block); const char *block_type_string(struct gfs2_block_query *q);
reply other threads:[~2009-06-10 16:32 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=20090610163135.983CD1201F2@lists.fedorahosted.org \ --to=andyp@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).