From: Roman Zippel <zippel@linux-m68k.org>
To: Christoph Hellwig <hch@lst.de>
Cc: linux-fsdevel@vger.kernel.org
Subject: Re: fishy ->put_inode usage in affs
Date: Thu, 14 Oct 2004 22:23:07 +0200 (CEST) [thread overview]
Message-ID: <Pine.LNX.4.61.0410141456060.877@scrub.home> (raw)
In-Reply-To: <20041014113005.GA24568@lst.de>
Hi,
On Thu, 14 Oct 2004, Christoph Hellwig wrote:
> looking at i_count in ->put_inode is racy. But ou could do the truncate
> nicely in ->clear_inode, with some work you might be able to consolidate
> the affs_truncate call in affs_delete_inode into that one aswell.
I don't like the idea of delaying it that long. I'll probably should move
it to affs_file_release() and affs_notify_change().
> Also what's the rationale for discarding the preallocations in
> affs_put_inode? Inode reference counts are something purely internal,
> depending in whether it's in core or ondisk reservations either
> fops->release or iops->clear_inode sounds like the right thing for it.
Well, the last time I did some major work on it, was somewhere during 2.2,
but I guess I've put it there to make sure preallocation is released.
The problem are directories, I'd like to avoid that preallocation for them
is kept too long. Actually I'd like to have some mechanism to explicitly
free all preallocations, e.g. when a disk gets full, it can be used to
completely fill it. At some point I played around with some code to do
this by basically doing a sync (that's why there is another call in
affs_write_inode()).
bye, Roman
prev parent reply other threads:[~2004-10-14 20:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-14 11:30 fishy ->put_inode usage in affs Christoph Hellwig
2004-10-14 20:23 ` Roman Zippel [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=Pine.LNX.4.61.0410141456060.877@scrub.home \
--to=zippel@linux-m68k.org \
--cc=hch@lst.de \
--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;
as well as URLs for NNTP newsgroup(s).