summaryrefslogtreecommitdiff
path: root/sys/fs/ctlfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/fs/ctlfs.c')
-rw-r--r--sys/fs/ctlfs.c23
1 files changed, 3 insertions, 20 deletions
diff --git a/sys/fs/ctlfs.c b/sys/fs/ctlfs.c
index efbf448..9225114 100644
--- a/sys/fs/ctlfs.c
+++ b/sys/fs/ctlfs.c
@@ -371,25 +371,7 @@ ctlfs_read(struct vnode *vp, struct sio_txn *sio)
static int
ctlfs_reclaim(struct vnode *vp)
{
- struct ctlfs_hdr *hp;
-
- if (vp->data == NULL) {
- return 0;
- }
-
- /* Ensure the magic is correct */
- hp = vp->data;
- switch (hp->magic) {
- case CTLFS_NODE_MAG:
- case CTLFS_ENTRY_MAG:
- dynfree(hp->name);
- break;
- default:
- pr_error("reclaim: bad magic in vp\n");
- break;
- }
-
- dynfree(vp->data);
+ vp->data = NULL;
return 0;
}
@@ -398,7 +380,8 @@ static const struct vops ctlfs_vops = {
.read = ctlfs_read,
.getattr = NULL,
.write = NULL,
- .reclaim = ctlfs_reclaim
+ .reclaim = ctlfs_reclaim,
+ .create = NULL
};
const struct vfsops g_ctlfs_vfsops = {