All of lore.kernel.org
 help / color / mirror / Atom feed
* ext3/ext4 directories don't shrink after deleting lots of files
@ 2009-05-14 22:02 Timo Sirainen
  2009-05-15  0:32 ` Josef Bacik
  0 siblings, 1 reply; 15+ messages in thread
From: Timo Sirainen @ 2009-05-14 22:02 UTC (permalink / raw)
  To: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 453 bytes --]

I've noticed that if you create e.g. 100k files to a directory and then
delete the files, the directory entry still seems to take a couple of
megabytes. Later whenever accessing the (almost empty) directory it can
take a few seconds to load it into cache.

Is there a way to shrink the directory somehow without having to rmdir()
it? Would be nice if kernel did it automatically, but I could live with
a manual userspace syscall/tool as well.


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2009-08-30 19:15 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-14 22:02 ext3/ext4 directories don't shrink after deleting lots of files Timo Sirainen
2009-05-15  0:32 ` Josef Bacik
2009-05-15  0:45   ` Timo Sirainen
2009-05-15 10:58     ` Theodore Tso
2009-05-15 17:29       ` Timo Sirainen
2009-05-15 18:25         ` Theodore Tso
2009-05-16  9:42       ` david
2009-05-17 21:33     ` Theodore Tso
2009-05-18  2:49       ` david
2009-05-18  3:21         ` Theodore Tso
2009-08-22 14:20       ` [PATCH 1/1] dir shrink (was Re: ext3/ext4 directories don't shrink after deleting lots of files) Andreas Schlick
2009-08-23  3:10         ` Andreas Dilger
2009-08-28 22:18           ` Andreas Schlick
2009-08-28 23:11             ` Andreas Dilger
2009-08-30 19:15               ` [PATCH 1/1] dir shrink Andreas Schlick

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.