diff options
author | Mateusz Guzik <mjg@FreeBSD.org> | 2021-05-29 15:38:21 +0000 |
---|---|---|
committer | Mateusz Guzik <mjg@FreeBSD.org> | 2021-05-29 22:04:10 +0000 |
commit | 7fbeaf33b8e1a5e69af42a77c78a6fcb3029f1ca (patch) | |
tree | fd6845c9b48c9764e6424af01894b38699b3624d /sys | |
parent | 3cf75ca220fb6a9006fa0481b97e154602f6f554 (diff) | |
download | src-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.c | 3 |
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; |