Re: [PATCH v1 04/12] fsnotify: reduce i_lock hold time in fsnotify_set_children_dentry_flags()

From: Miklos Szeredi

Date: Mon Aug 10 2026 - 10:50:03 EST


On Mon, 3 Aug 2026 at 03:39, NeilBrown <neilb@xxxxxxxxxxx> wrote:

> + /* Find the dentry for inode - there can only be one */
> + for_each_alias(alias, inode)
> + break;
> + dget(alias);

This is __d_find_dir_alias().

Could add a get_dir_alias() primitive that does the i_lock locking as well?

Thanks,
Miklos