public inbox for linux-ext4@vger.kernel.org
 help / color / mirror / Atom feed
From: Theodore Tso <tytso@mit.edu>
To: Akira Fujita <a-fujita@rs.jp.nec.com>
Cc: linux-ext4@vger.kernel.org, linux-fsdevel@vger.kernel.org
Subject: Re: [RFC][PATCH 0/12]ext4: online defrag (ver 0.95)
Date: Sat, 27 Sep 2008 10:49:24 -0400	[thread overview]
Message-ID: <20080927144924.GA11669@mit.edu> (raw)
In-Reply-To: <48DDE025.2090207@rs.jp.nec.com>

On Sat, Sep 27, 2008 at 04:26:29PM +0900, Akira Fujita wrote:
> Summary of patches:
> * The followings are new ext4 online defrag patches and they consist
>   of ioctl unit except 1-4.  Because the EXT4_IOC_DEFRAG is too big to review,
>   I divided it into 4 patches.

It would make it *much* easier to review the first four patches if you
did the following:

*) Refector the patches so that low-level functions are first.  Right
   now it's a little hard to review the patches because in a number of
   cases the documentation is in a different patch than the one where
   "return 0;" is replaced with the actual code.

*) In many cases, there is extraneous code in the patch which is not
   described in the commit comments.  For example, in [PATCH 3/12]
   there is a large amount of extent manipulation code that has
   nothing to do with "read and write file data with memory page".  In
   fact, from inspection it looked like there was more extent
   manipulation code than code that was responsible for reading and
   writing the data blocks.

*) It would be much better if extent-related functions are moved to
   the extent.c file, instead of taking low-level extent.c functions
   and making them to be non-static.  (Similarly, if there are
   functions that are more about block allocation, it's better for
   them to go into mballoc.c, instead of putting everything in
   defrag.c).  The idea is to make the code more readable by having
   the correct abstractions, ideally that could be useful for more
   than just defragging --- for example, the code for making sure we
   merge adjacent extents could also be useful when we write into a
   middle of a sparse file.  If it turns out we have code in extent.c
   that does that, let's only have one function, appropriately
   abstracted, that does that, instead of one version for normal use,
   and one version which is tweaked just for defrag.c's specific
   requirements.

*) Could we have at least a few lines description of what the function
   does, instead of just a one-liner and "this function returns 0 on
   success, or an error on failure".  That would be very helpful.
   Many thanks!!

						- Ted

  reply	other threads:[~2008-09-27 14:49 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-27  7:26 [RFC][PATCH 0/12]ext4: online defrag (ver 0.95) Akira Fujita
2008-09-27 14:49 ` Theodore Tso [this message]
2008-09-28 23:46   ` Theodore Tso
2008-10-01  0:40 ` Andreas Dilger
2008-10-01 18:45   ` Christoph Hellwig
2008-10-01 21:20     ` Theodore Tso
2008-10-02  8:10       ` Andreas Dilger
2008-10-02  8:26         ` Christoph Hellwig

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=20080927144924.GA11669@mit.edu \
    --to=tytso@mit.edu \
    --cc=a-fujita@rs.jp.nec.com \
    --cc=linux-ext4@vger.kernel.org \
    --cc=linux-fsdevel@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