public inbox for linux-ext4@vger.kernel.org
 help / color / mirror / Atom feed
From: Theodore Ts'o <tytso@mit.edu>
To: Joakim Tjernlund <Joakim.Tjernlund@infinera.com>
Cc: "linux-ext4@vger.kernel.org" <linux-ext4@vger.kernel.org>
Subject: Re: [EXTERNAL]Re: ext4 build errors
Date: Mon, 2 Oct 2017 14:40:35 -0400	[thread overview]
Message-ID: <20171002184035.hwbkntpuup7ikqyv@thunk.org> (raw)
In-Reply-To: <1506965229.24473.9.camel@infinera.com>

On Mon, Oct 02, 2017 at 05:27:12PM +0000, Joakim Tjernlund wrote:
> > This is why void * is the right thing --- it's not a u32 or a long.
> > It's a bit array.  And in the case of the mb buddy bitmap, it's not
> > necessarily going to start on a a byte boundary which is a multiple of
> > 4 or 8.
> 
> For ext4 it might be right but I was using "you" in a wider scope,
> the rest of kernel src.

So let's take this up to a high level of the problem.  For the bitops
functions, there are two sorts of users.  Those that want to operate
on an integer type (either a u32 or a long), and those that operate on
bitarrays.  Most of the integer users are using the bitops for
in-memory state flags.  Most of the bitarray use cases are for things
like ext4's allocation bitmaps, where the on-disk format needs to be
portable across architectures --- and that's where bitops_le tends to
be used.

Taking a quick look at the output of "git grep set_bit_le", most of
the users are just like ext4, where it's being used for a bitarray.
So my argument I think *does* apply much more widely.

      	       	       	      	    	 - Ted

  reply	other threads:[~2017-10-02 18:40 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-02 14:23 ext4 build errors Joakim Tjernlund
2017-10-02 14:55 ` Theodore Ts'o
2017-10-02 15:15   ` Joakim Tjernlund
2017-10-02 16:54     ` Theodore Ts'o
2017-10-02 17:27       ` [EXTERNAL]Re: " Joakim Tjernlund
2017-10-02 18:40         ` Theodore Ts'o [this message]
2017-10-02 20:12           ` [EXTERNAL]Re: " Joakim Tjernlund

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=20171002184035.hwbkntpuup7ikqyv@thunk.org \
    --to=tytso@mit.edu \
    --cc=Joakim.Tjernlund@infinera.com \
    --cc=linux-ext4@vger.kernel.org \
    /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