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>
This commit is contained in:
NeilBrown 2026-02-25 09:16:49 +11:00 committed by Christian Brauner
parent 4eb94abd6b
commit 1948172bdd
No known key found for this signature in database
GPG Key ID: 91C61BC06578DCA2

View 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);