Re: [Tux3] symlink, truncate, unlink, link, and some bug fixes

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <tux3@...>
Cc: OGAWA Hirofumi <hirofumi@...>
Date: Sunday, December 7, 2008 - 8:36 am

On Sunday 07 December 2008 03:47, OGAWA Hirofumi wrote:

It all looks beautiful, and as usual, it builds cleanly, passes all the
tests, boots up and mounts without problems. I did not test the new
functionality yet. Pushed to public.

One idea on the links count attribute: as a later optimization, how
about we store it only if it is not equal to one? That is the majority
of cases. Saving the 6 bytes of link count attribute for most files
will reduce our average inode size by 12% or so. I previously
suggested we interpret a missing links attribute as zero, but that is a
rare case (orphan and internal inodes). We should just store the
attribute then.

Link count for a directory is always 2 + number of subdirectories.
What about storing one less than the directory link count, so that
the stored link count for a directory with no children is one, which
is most directories? Then we also would not have to store the size
attribute for a directory.

Very small optimizations, I know.

Daniel

_______________________________________________
Tux3 mailing list
Tux3@tux3.org
http://mailman.tux3.org/cgi-bin/mailman/listinfo/tux3

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[Tux3] Tux3 kernel port - introduction, Daniel Phillips, (Tue Aug 26, 7:04 pm)
Re: [Tux3] symlink, truncate, unlink, link, and some bug fixes, Daniel Phillips, (Sun Dec 7, 8:36 am)
Re: [Tux3] Tux3 kernel port - about ext2_get_inode, Daniel Phillips, (Wed Aug 27, 1:42 am)
Re: [Tux3] Tux3 kernel port - about ext2_get_inode, Daniel Phillips, (Sat Aug 30, 7:49 pm)