> this serves to mimise the impact of sorting from the most used entries to
> the ghost entries and minimise the expense of a shrink procedure.
There is a question how long will the "way" of entry through dir last in the
case of big directories, but it depends on some constants and probably only
testing can offer reliable results.
> do bear in mind i'm hardly lucid after a few days and only a few hours of
> sleep. :)
I also haven't slept lot in last days (gone to bed about 3 o'clock in the morning
and woken about 8 :).
Looking on ext2_rmdir code I was hit by an idea (it happens only rarely:).
When ext2 is freeing the dir-entry it tries to "recombine" the free space.
If there is a free entry before the freed one (only in the same block), it
will concatenate the free space. Maybe it could also concatenate with the
following entry, if it's free... We can also make concatenating across the
block boundaries but the effect of this might be uncertain...
Good night and sweet dreams wishes
Honza :)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html