From: Andrew Morton <akpm@digeo.com>
To: Andreas Dilger <adilger@clusterfs.com>
Cc: cat@zip.com.au, linux-kernel@vger.kernel.org
Subject: Re: ext3 weirdness
Date: Fri, 11 Apr 2003 16:26:39 -0700 [thread overview]
Message-ID: <20030411162639.04ddb83d.akpm@digeo.com> (raw)
In-Reply-To: <20030411170352.S26054@schatzie.adilger.int>
Andreas Dilger <adilger@clusterfs.com> wrote:
>
> On Apr 11, 2003 15:40 -0700, Andrew Morton wrote:
> > Andreas Dilger <adilger@clusterfs.com> wrote:
> > > Because you can't reallocate in-use blocks until the dirty bitmaps have
> > > been committed to disk in a transaction.
> >
> > Also, in 2.5 pdflush will take a ref on the inode while writing it out. So
> > an unlink while pdflush is writing back the inode's pages will be magically
> > instantaneous, and pdflush actually does the truncate.
>
> It should be possible to have pdflush check for i_nlink == 0 and i_count == 1
> periodically, indicating it is the only one that has a reference and then
> immediately iput the node (truncating the pages instead of writing them out).
>
Yes. It is supposed to iput() the inode every sync_writeback_pages() (up to
1024 pages) anyway, partly for this reason.
But I have a vague feeling that this is not working. I'll take a look.
prev parent reply other threads:[~2003-04-11 23:15 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-11 17:06 CaT
2003-04-11 17:39 ` Andreas Dilger
2003-04-11 22:40 ` Andrew Morton
2003-04-11 23:03 ` Andreas Dilger
2003-04-11 23:26 ` Andrew Morton [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=20030411162639.04ddb83d.akpm@digeo.com \
--to=akpm@digeo.com \
--cc=adilger@clusterfs.com \
--cc=cat@zip.com.au \
--cc=linux-kernel@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
all inboxes | Powered by JetHome®