* fishy ->put_inode usage in affs
@ 2004-10-14 11:30 Christoph Hellwig
2004-10-14 20:23 ` Roman Zippel
0 siblings, 1 reply; 2+ messages in thread
From: Christoph Hellwig @ 2004-10-14 11:30 UTC (permalink / raw)
To: zippel; +Cc: linux-fsdevel
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.
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: fishy ->put_inode usage in affs
2004-10-14 11:30 fishy ->put_inode usage in affs Christoph Hellwig
@ 2004-10-14 20:23 ` Roman Zippel
0 siblings, 0 replies; 2+ messages in thread
From: Roman Zippel @ 2004-10-14 20:23 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: linux-fsdevel
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-10-14 20:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-14 11:30 fishy ->put_inode usage in affs Christoph Hellwig
2004-10-14 20:23 ` Roman Zippel
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).