lkml.org 
[lkml]   [2003]   [Apr]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: ext3 weirdness
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).

Cheers, Andreas
--
Andreas Dilger
http://sourceforge.net/projects/ext2resize/
http://www-mddsp.enel.ucalgary.ca/People/adilger/

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:34    [W:0.056 / U:0.040 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site