Re: Deleting large files

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Christoph Hellwig
Date: Sunday, May 11, 2008 - 4:16 am

On Thu, May 08, 2008 at 11:19:06AM +0300, Matti Aarnio wrote:

I'd call long times for the final unlink a bug in the filesystem.
There's not all that much to do when deleting a file.   What you need to
do is basically return the allocated space to the free space allocator
and mark the inode as unused and return it to the inode allocator.  The
first one may take quite a while with a indirect block scheme, but with
an extent based filesystem it shouldn't be a problem.  The latter
shouldn't take too long either, and with a journaling filesystem it's
even easier because you can intent-log the inode deletion first and then
perform it later e.g. as part of a batched write-back of the inode
cluster.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Deleting large files, Morten Welinder, (Wed May 7, 12:49 pm)
Re: Deleting large files, Jan Engelhardt, (Wed May 7, 1:10 pm)
Re: Deleting large files, Xavier Bestel, (Wed May 7, 1:17 pm)
Re: Deleting large files, Jan Engelhardt, (Wed May 7, 1:48 pm)
Re: Deleting large files, linux-os (Dick Johnson), (Wed May 7, 3:34 pm)
Re: Deleting large files, Morten Welinder, (Wed May 7, 4:14 pm)
Re: Deleting large files, Matti Aarnio, (Thu May 8, 1:19 am)
Re: Deleting large files, Christian Kujau, (Thu May 8, 10:29 am)
Re: Deleting large files, Alan Cox, (Thu May 8, 4:01 pm)
Re: Deleting large files, Jan Engelhardt, (Sun May 11, 3:30 am)
Re: Deleting large files, Christoph Hellwig, (Sun May 11, 4:16 am)
Re: Deleting large files, Enrico Weigelt, (Sun May 11, 9:38 am)
Re: Deleting large files, Aneesh Kumar K.V, (Sun May 11, 9:42 am)
Re: Deleting large files, Pavel Machek, (Sat May 17, 5:15 am)
Re: Deleting large files, Pavel Machek, (Tue May 20, 7:33 am)