From 7fbeaf33b8e1a5e69af42a77c78a6fcb3029f1ca Mon Sep 17 00:00:00 2001 From: Mateusz Guzik Date: Sat, 29 May 2021 17:38:21 +0200 Subject: [PATCH] tmpfs: drop useless parent locking from tmpfs_dir_getdotdotdent The id field is immutable until the node gets freed. --- sys/fs/tmpfs/tmpfs_subr.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/sys/fs/tmpfs/tmpfs_subr.c b/sys/fs/tmpfs/tmpfs_subr.c index 8b75c58d69a..df5bc12047b 100644 --- a/sys/fs/tmpfs/tmpfs_subr.c +++ b/sys/fs/tmpfs/tmpfs_subr.c @@ -1436,10 +1436,7 @@ tmpfs_dir_getdotdotdent(struct tmpfs_mount *tm, struct tmpfs_node *node, if (parent == NULL) return (ENOENT); - TMPFS_NODE_LOCK(parent); dent.d_fileno = parent->tn_id; - TMPFS_NODE_UNLOCK(parent); - dent.d_off = next; dent.d_type = DT_DIR; dent.d_namlen = 2;