[PATCH -next -v4 01/17] fs: pass struct path to notify_change()

sashiko-bot at kernel.org sashiko-bot at kernel.org
Tue Nov 17 14:48:19 UTC 2026


> notify_change() and do_truncate() take a struct dentry even though their
> callers either hold a struct path (or a struct file) or only need the
> mount they already use to build one.  Pass a struct path instead; the
> idmap stays a separate argument, as it must be taken from the mount when
> the path is checked and passed down unchanged.
> 
> The NTFS named stream support forwards a change to the base inode.  Add a
> notify_change_target() helper for it, and record the path the change was
> requested through in the new iattr.ia_path field, which is only valid for
> the duration of the notify_change() call and must not be stored.
> 
> Signed-off-by: Cai Xinchen <caixinchen1 at huawei.com>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261117150542.1169451-1-caixinchen1@huawei.com?part=1




More information about the Linux-security-module-archive mailing list