Re: [PATCH 1/3] vfs: add inode iteration method super_iter_inodes
From: Huang Shijie
Date: Thu Oct 15 2026 - 22:46:09 EST
在 Thu, Oct 15, 2026 at 11:23:07AM -0400,Stephen Smalley 写道:
>
> Perhaps SELinux could also use this to replace its own inode walking
> logic at the tail of security/selinux/hooks.c:sb_finish_set_opts()?
The super_iter_inodes() can not be used by sb_finish_set_opts() now.
super_iter_inodes is only used to iterate the inodes in sb->s_inodes list
which is proteced by sb->s_inode_list_lock.
Thanks
Huang Shijie