Re: Iterate over inodes at umount?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, August 26, 2009 8:35 pm, Fredrik Arnerup wrote:
> Hello,
>
> I'm working on a flash fs and find I need to free memory and maybe write
> data to flash for each inode upon unmounting the fs. Is there a way of
> getting a list of all inodes in a file system, or do I need to keep a list
> of all inodes myself and iterate over it in file_system_type.kill_sb?
>
> Any examples to look at?

This is already done for you isn't it?

generic_shutdown_super calls invalidate_inodes which will walk through
the list of inodes and call clear_inode and destroy_inode, both of which
can call in to your filesystem.

Do you need more than that?

NeilBrown

--
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

[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux