All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rusty Lynch <rusty@linux.co.intel.com>
To: ocfs2-devel@oss.oracle.com
Subject: [Ocfs2-devel] [PATCH]2.6 fixes in super.c
Date: Tue Feb 24 16:38:57 2004	[thread overview]
Message-ID: <20040224223848.GA24814@penguin.co.intel.com> (raw)
In-Reply-To: <20040224221212.GL1421@ca-server1.us.oracle.com>

On Tue, Feb 24, 2004 at 02:12:12PM -0800, Mark Fasheh wrote:
> On Mon, Feb 23, 2004 at 08:25:01PM -0800, Rusty Lynch wrote:
> > Here is a redone version of the patch that applies cleanly to the current 
> > svn repository.
> > 
> >     --rusty
> <snip>
> 
> > @@ -721,15 +733,27 @@
> >          buf->f_type = OCFS_MAGIC;
> >          buf->f_bsize = sb->s_blocksize;
> >          buf->f_namelen = OCFS_MAX_FILENAME_LENGTH;
> > +        buf->f_bavail = buf->f_bfree;
> > +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
> >          buf->f_blocks =
> > -            (unsigned long) ((unsigned long) (numbits) *
> > -                             (unsigned long) (osb->vol_layout.cluster_size >> 9) -
> > -			     (8 * ONE_MEGA_BYTE / osb->vol_layout.cluster_size)); 
> > +		(unsigned long) ((unsigned long) (numbits) *
> > +				 (unsigned long) (osb->vol_layout.cluster_size >> 9) -
> > +				 (8 * ONE_MEGA_BYTE / osb->vol_layout.cluster_size)); 
> >          buf->f_bfree =
> >              (unsigned long) (freebits * (osb->vol_layout.cluster_size >> 9));
> >          buf->f_bavail = buf->f_bfree;
> >          buf->f_files = (unsigned long) (numbits);
> >          buf->f_ffree = (unsigned long) (numbits) - freebits;
> > +#else
> > +        buf->f_blocks =
> > +		(sector_t) ((unsigned long) (numbits) *
> > +			    (unsigned long) (osb->vol_layout.cluster_size >> 9) -
> > +			    (8 * ONE_MEGA_BYTE / osb->vol_layout.cluster_size)); 
> > +        buf->f_bfree =
> > +            (sector_t) (freebits * (osb->vol_layout.cluster_size >> 9));
> > +        buf->f_files = (sector_t) (numbits);
> > +        buf->f_ffree = (sector_t) (numbits) - freebits;
> > +#endif
> 
> In this preprocessor conditional, don't we mean: 
> #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0)
> 
> instead of 
> #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
> 
> If so, I'll just change it in my tree and commit that (you should prolly fix
> it in yours too).
> 	--Mark

Yeap, good catch.

    --rusty

      reply	other threads:[~2004-02-24 16:38 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-17 21:12 [Ocfs2-devel] [PATCH]2.6 fixes in super.c Rusty Lynch
2004-02-19 17:38 ` Rusty Lynch
2004-02-23 17:35   ` Mark Fasheh
2004-02-23 17:46     ` Mark Fasheh
2004-02-23 17:52       ` Rusty Lynch
2004-02-23 22:25     ` Rusty Lynch
2004-02-24 16:12       ` Mark Fasheh
2004-02-24 16:38         ` Rusty Lynch [this message]

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=20040224223848.GA24814@penguin.co.intel.com \
    --to=rusty@linux.co.intel.com \
    --cc=ocfs2-devel@oss.oracle.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.