size limit for TMPFS

Howard Su howard0su at gmail.com
Fri May 18 15:02:49 UTC 2007


On 5/18/07, Eric Anderson <anderson at freebsd.org> wrote:
> On 05/18/07 01:28, Howard Su wrote:
>  From a quick glance, you are storing your inode count in the mount
> structure of the tmpfs.  So, anytime you do anything with the fs, you
> have to lock the mount struct anyway, so there's no additional mutex
> when updating the block count vs inode count, right?  Please correct me
> if I'm wrong here, since I'm still learning much about locking/vfs/etc.
You are right in one persipective. the memory consumed by inode can be
counted in this way.

However when we allocate the filename, dirent, you need acquire the
mutex which is not needed currently.


-- 
-Howard


More information about the freebsd-fs mailing list