]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
new helper: simple_start_creating()
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 23 Mar 2025 01:06:11 +0000 (21:06 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 3 Jul 2025 02:44:38 +0000 (22:44 -0400)
commit59200f45267481582f4e42334a510f01d0b89449
tree36221b5bbec83215c21d33fd474efe42c38e89e5
parent2a8061ee5e41034eb14170ec4517b5583dbeff9f
new helper: simple_start_creating()

Set the things up for kernel-initiated creation of object in
a tree-in-dcache filesystem.  With respect to locking it's
an equivalent of filename_create() - we either get a negative
dentry with locked parent, or ERR_PTR() and no locks taken.

tracefs and debugfs had that open-coded as part of their
object creation machinery; switched to calling new helper.

Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/debugfs/inode.c
fs/libfs.c
fs/tracefs/inode.c
include/linux/fs.h