From: NeilBrown Date: Tue, 24 Feb 2026 22:16:49 +0000 (+1100) Subject: libfs: change simple_done_creating() to use end_creating() X-Git-Tag: v7.1-rc1~245^2^2~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1948172bddabef7f9ca46d3e965e71eb93a0dcc5;p=thirdparty%2Fkernel%2Flinux.git 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 Link: https://patch.msgid.link/20260224222542.3458677-5-neilb@ownmail.net Reviewed-by: Jeff Layton Signed-off-by: Christian Brauner --- diff --git a/fs/libfs.c b/fs/libfs.c index 74134ba2e8d1e..63b4fb082435f 100644 --- a/fs/libfs.c +++ b/fs/libfs.c @@ -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);