[Ocfs2-tools-devel] [PATCH 2/2] defrag.ocfs2: Clear unused inode groups

Tao Ma tao.ma at oracle.com
Sat Feb 20 19:27:54 PST 2010


Hi Goldwyn,

Goldwyn Rodrigues wrote:
> Clears all inode groups which have no allocated inodes in all
> chains of all inode allocators.
> 
> Currently, it gets more inode groups only after a mass delete. Any
> inode allocations after that fill atleast one inode in each inode
> group, in a round robin fashion, starting from the inode group which
> has the most inodes free first.
You mean the method in kernel when we allocate inodes? Now we allocating 
from the same inode groups of the directory. What's more, we store the 
alloc_group in osb_inode_alloc_group to use it next time. So it 
shouldn't be round robin anymore. Am I missing something here?

Regards,
Tao



More information about the Ocfs2-tools-devel mailing list