summaryrefslogtreecommitdiff
path: root/sys/fs/tmpfs
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2021-10-20 01:54:48 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2021-10-27 00:24:40 +0000
commitbb7b0674f6228c7e5c232b38e1ceaefdf34715ed (patch)
treec53e34edd67de388ea18967234269f966789913d /sys/fs/tmpfs
parent4e56152e47dd0093a09e6dddff2c5538e7af5427 (diff)
Diffstat (limited to 'sys/fs/tmpfs')
-rw-r--r--sys/fs/tmpfs/tmpfs_subr.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/fs/tmpfs/tmpfs_subr.c b/sys/fs/tmpfs/tmpfs_subr.c
index e746a7455860..2aa8891f907d 100644
--- a/sys/fs/tmpfs/tmpfs_subr.c
+++ b/sys/fs/tmpfs/tmpfs_subr.c
@@ -454,7 +454,6 @@ tmpfs_alloc_node(struct mount *mp, struct tmpfs_mount *tmp, enum vtype type,
const char *target, dev_t rdev, struct tmpfs_node **node)
{
struct tmpfs_node *nnode;
- vm_object_t obj;
char *symlink;
char symlink_smr;
@@ -566,7 +565,7 @@ tmpfs_alloc_node(struct mount *mp, struct tmpfs_mount *tmp, enum vtype type,
break;
case VREG:
- obj = nnode->tn_reg.tn_aobj =
+ nnode->tn_reg.tn_aobj =
vm_pager_allocate(tmpfs_pager_type, NULL, 0,
VM_PROT_DEFAULT, 0,
NULL /* XXXKIB - tmpfs needs swap reservation */);