Re: [PATCH v3 08/14] vfs: lookup_open(): use vfs_create_no_perm()

From: Christian Brauner

Date: Tue Jul 07 2026 - 06:52:51 EST


> We can replace the code in the no create_error/negative dentry found
> from lookup case in lookup_open() with the vfs_create_no_perm() helper.
>
> It is safe here to always pass excl=true to ->create via
> vfs_create_no_perm(). Local filesystems always ignore the excl flag,
> and cluster filesystems implement ->atomic_open, so that the ->create
> call is never reached in lookup_open().
>
> Signed-off-by: Jori Koolstra <jkoolstra@xxxxxxxxx>

good cleanup

--
Christian Brauner <brauner@xxxxxxxxxx>