]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
libfs: change simple_done_creating() to use end_creating()
authorNeilBrown <neil@brown.name>
Tue, 24 Feb 2026 22:16:49 +0000 (09:16 +1100)
committerChristian Brauner <brauner@kernel.org>
Fri, 6 Mar 2026 09:24:11 +0000 (10:24 +0100)
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>
fs/libfs.c

index 74134ba2e8d1e67b88b3a07841f927a4a411988f..63b4fb082435f63f8766237744f742456e4042b9 100644 (file)
@@ -2318,7 +2318,6 @@ EXPORT_SYMBOL(simple_start_creating);
 /* parent must have been held exclusive since simple_start_creating() */
 void simple_done_creating(struct dentry *child)
 {
-       inode_unlock(child->d_parent->d_inode);
-       dput(child);
+       end_creating(child);
 }
 EXPORT_SYMBOL(simple_done_creating);