aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2021-05-29 15:38:21 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2021-05-29 22:04:10 +0000
commit7fbeaf33b8e1a5e69af42a77c78a6fcb3029f1ca (patch)
treefd6845c9b48c9764e6424af01894b38699b3624d /sys
parent3cf75ca220fb6a9006fa0481b97e154602f6f554 (diff)
downloadsrc-7fbeaf33b8e1a5e69af42a77c78a6fcb3029f1ca.tar.gz
src-7fbeaf33b8e1a5e69af42a77c78a6fcb3029f1ca.zip
tmpfs: drop useless parent locking from tmpfs_dir_getdotdotdent
The id field is immutable until the node gets freed.
Diffstat (limited to 'sys')
-rw-r--r--sys/fs/tmpfs/tmpfs_subr.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/fs/tmpfs/tmpfs_subr.c b/sys/fs/tmpfs/tmpfs_subr.c
index 8b75c58d69a2..df5bc12047be 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;