From: Theodore Tso <tytso@mit.edu>
To: Eric Sandeen <sandeen@redhat.com>
Cc: "Robert P. J. Day" <rpjday@crashcourse.ca>,
linux-ext4@vger.kernel.org, Andrew Morton <akpm@osdl.org>
Subject: Re: [PATCH] EXT4: Use is_power_of_2() routine for clarity.
Date: Fri, 24 Apr 2009 13:34:50 -0400 [thread overview]
Message-ID: <20090424173450.GJ7949@mit.edu> (raw)
In-Reply-To: <49F1D4C3.5040804@redhat.com>
On Fri, Apr 24, 2009 at 10:03:31AM -0500, Eric Sandeen wrote:
> > @@ -2092,7 +2092,7 @@ static ssize_t inode_readahead_blks_store(struct ext4_attr *a,
> > return -EINVAL;
> >
> > /* inode_readahead_blks must be a power of 2 */
> > - if (t & (t-1))
> > + if (!is_power_of_2(t))
> > return -EINVAL;
Might as well remove the comment; it's not needed if we're going to be
using is_power_of_2().
- Ted
next prev parent reply other threads:[~2009-04-24 17:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-24 13:06 [PATCH] EXT4: Use is_power_of_2() routine for clarity Robert P. J. Day
2009-04-24 15:03 ` Eric Sandeen
2009-04-24 17:34 ` Theodore Tso [this message]
2009-04-25 4:00 ` [PATCH] ext4: Use is_power_of_2() " Theodore Ts'o
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=20090424173450.GJ7949@mit.edu \
--to=tytso@mit.edu \
--cc=akpm@osdl.org \
--cc=linux-ext4@vger.kernel.org \
--cc=rpjday@crashcourse.ca \
--cc=sandeen@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 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.