mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 18:43:33 +02:00
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:
parent
4eb94abd6b
commit
1948172bdd
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user