diff options
author | Ian Moffett <ian@osmora.org> | 2025-05-29 22:43:28 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-05-29 22:43:28 -0400 |
commit | 25794813699d39d81db6fee7d524268367275175 (patch) | |
tree | 5381b388cf26683b4e286f9502f8b78e8f9f1193 /sys | |
parent | e4ed89e211ecc2754c4f1c772828e621fbd987e4 (diff) |
kernel: devfs: Do not dynfree() dnp during reclaim
Devfs entries should be persistent throughout system operation and
closing a file descriptor results in the vnode being released and
its respective reclaim hook being called.
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys')
-rw-r--r-- | sys/fs/devfs.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/sys/fs/devfs.c b/sys/fs/devfs.c index 1dfc10d..a2ac7e8 100644 --- a/sys/fs/devfs.c +++ b/sys/fs/devfs.c @@ -170,13 +170,6 @@ devfs_getattr(struct vop_getattr_args *args) static int devfs_reclaim(struct vnode *vp) { - struct devfs_node *dnp; - - if ((dnp = vp->data) != NULL) { - dynfree(dnp->name); - dynfree(vp->data); - } - vp->data = NULL; return 0; } |