On Thu, Mar 03, 2011 at 01:02:50PM -0800, Linus Torvalds wrote: > > So we have to simulate some levels. I guess you > > are not saying we don't need to care it at all though. > > I'm saying that it should just work to set i_nlink=1 and not do > anything at all. Ever. It's a valid model for directory counts. Sure, no problem. Just leave that cleaning of i_nlink on victim in unlink/rmdir/rename; we *really* rely on that in e.g. deciding when to free the damn inode in fat_evict_inode(). We need to mark them for freeing _anyway_, right? It doesn't depend on what exact value do we keep for live directories - "everyone got 1 for as long as they live" is just fine, and IMO it's a win, but it's an unrelated question. -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html