Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

libfs: change simple_done_creating() to use end_creating()

simple_done_creating() and end_creating() are identical.
So change the former to use the latter. This further centralises
unlocking of directories.

Signed-off-by: NeilBrown <neil@brown.name>
Link: https://patch.msgid.link/20260224222542.3458677-5-neilb@ownmail.net
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>

authored by

NeilBrown and committed by
Christian Brauner
1948172b 4eb94abd

+1 -2
+1 -2
fs/libfs.c
··· 2318 2318 /* parent must have been held exclusive since simple_start_creating() */ 2319 2319 void simple_done_creating(struct dentry *child) 2320 2320 { 2321 - inode_unlock(child->d_parent->d_inode); 2322 - dput(child); 2321 + end_creating(child); 2323 2322 } 2324 2323 EXPORT_SYMBOL(simple_done_creating);