From: Andreas Schlick <schlick@lavabit.com>
To: Andreas Dilger <adilger@sun.com>
Cc: Theodore Tso <tytso@mit.edu>, linux-ext4@vger.kernel.org
Subject: Re: [PATCH 1/1] dir shrink
Date: Sun, 30 Aug 2009 21:15:32 +0200 [thread overview]
Message-ID: <200908302115.32536.schlick@lavabit.com> (raw)
In-Reply-To: <20090828231115.GV4197@webber.adilger.int>
Hello,
On Saturday 29 August 2009, Andreas Dilger wrote:
> > As I understand it, Ted's idea was to avoid problems with the
> > transactions by doing it after the main work of
> > unlink()/rmdir()/rename(). I don't know what the better approach is and
> > don't mind changing it.
> This seems reasonable, though in that case it seems it would be much
> more efficient to just put the directory inode onto an in-memory list
> of directories that have recently emptied a block, and then have a
> separate helper thread (or kernel task or whatever) that checks this
> list periodically and does freeing of all blocks at the end of the
> file that are empty.
But is deleting a huge number of files common enough that the increase in code
complexity pays off? I'd expect that it doesn't happen often enough to gain
much. And if it gets more complex, I'd like to have the base functionality
tested first, so would the patch be acceptable as it is?
Andreas Schlick
prev parent reply other threads:[~2009-08-30 19:15 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-14 22:02 ext3/ext4 directories don't shrink after deleting lots of files Timo Sirainen
2009-05-15 0:32 ` Josef Bacik
2009-05-15 0:45 ` Timo Sirainen
2009-05-15 10:58 ` Theodore Tso
2009-05-15 17:29 ` Timo Sirainen
2009-05-15 18:25 ` Theodore Tso
2009-05-16 9:42 ` david
2009-05-17 21:33 ` Theodore Tso
2009-05-18 2:49 ` david
2009-05-18 3:21 ` Theodore Tso
2009-08-22 14:20 ` [PATCH 1/1] dir shrink (was Re: ext3/ext4 directories don't shrink after deleting lots of files) Andreas Schlick
2009-08-23 3:10 ` Andreas Dilger
2009-08-28 22:18 ` Andreas Schlick
2009-08-28 23:11 ` Andreas Dilger
2009-08-30 19:15 ` Andreas Schlick [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=200908302115.32536.schlick@lavabit.com \
--to=schlick@lavabit.com \
--cc=adilger@sun.com \
--cc=linux-ext4@vger.kernel.org \
--cc=tytso@mit.edu \
/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.