linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Theodore Ts'o <tytso@mit.edu>
To: Lukas Czerner <lczerner@redhat.com>
Cc: linux-ext4@vger.kernel.org
Subject: Re: [PATCH 2/2] ext4: introduce ext4_get_group_number()
Date: Tue, 26 Mar 2013 23:44:22 -0400	[thread overview]
Message-ID: <20130327034422.GF5861@thunk.org> (raw)
In-Reply-To: <20130327031207.GC5861@thunk.org>

On Tue, Mar 26, 2013 at 11:12:07PM -0400, Theodore Ts'o wrote:
> Again, we have the same problem as the previous patch.  I could
> imagine setting a flag which uses the shift-instead-of-div
> optimization, but that will reduce the optimization somewhat.  

Just to be clear, I was thinking that at mount time we could check to
see whether the number of blocks per group == blocksize * 8, and if
so, then set a per-filesystem flag in the sbi structure which we could
then use to optionally use the shift-right optimization.

						- Ted

  reply	other threads:[~2013-03-27  3:44 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-25 10:24 [PATCH 1/2] ext4: Make ext4_block_in_group() much more efficient Lukas Czerner
2013-03-25 10:24 ` [PATCH 2/2] ext4: introduce ext4_get_group_number() Lukas Czerner
2013-03-27  3:12   ` Theodore Ts'o
2013-03-27  3:44     ` Theodore Ts'o [this message]
2013-03-27  3:05 ` [PATCH 1/2] ext4: Make ext4_block_in_group() much more efficient 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=20130327034422.GF5861@thunk.org \
    --to=tytso@mit.edu \
    --cc=lczerner@redhat.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;
as well as URLs for NNTP newsgroup(s).