]> git.ipfire.org Git - thirdparty/linux.git/commit
VFS: move dentry_create() from fs/open.c to fs/namei.c
authorBenjamin Coddington <bcodding@hammerspace.com>
Thu, 27 Nov 2025 16:02:03 +0000 (11:02 -0500)
committerChristian Brauner <brauner@kernel.org>
Mon, 15 Dec 2025 13:12:41 +0000 (14:12 +0100)
commit977de00dfcf87e8d95f55dfc247955dc2f9da14d
tree2b274a4bf9927f89d3d06d02171d1880ba4ad828
parent8f0b4cce4481fb22653697cced8d0d04027cb1e8
VFS: move dentry_create() from fs/open.c to fs/namei.c

To prepare knfsd's helper dentry_create(), move it to namei.c so that it
can access static functions within.  Callers of dentry_create() can be
viewed as being mostly done with lookup, but still need to perform a few
final checks.  In order to use atomic_open() we want dentry_create() to
be able to access:

- vfs_prepare_mode
- may_o_create
- atomic_open

.. all of which have static declarations.

Signed-off-by: Benjamin Coddington <bcodding@hammerspace.com>
Link: https://patch.msgid.link/42deec53a50e1676e5501f8f1e17967d47b83681.1764259052.git.bcodding@hammerspace.com
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/namei.c
fs/open.c