summaryrefslogtreecommitdiffstats
path: root/sys/fs/tmpfs
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2014-07-28 01:21:02 +0000
committerkib <kib@FreeBSD.org>2014-07-28 01:21:02 +0000
commit20a66511817c069bc8532bba59681731e3bdb85f (patch)
tree2e35e35c0770db0783c109e26ca7c4c228dd0612 /sys/fs/tmpfs
parentd2764792a74c6d5fbdff0f50856cc3130afc40da (diff)
downloadFreeBSD-src-20a66511817c069bc8532bba59681731e3bdb85f.zip
FreeBSD-src-20a66511817c069bc8532bba59681731e3bdb85f.tar.gz
MFC r268615:
Add OBJ_TMPFS_NODE flag. MFC r268616: Set the OBJ_TMPFS_NODE flag for vm_object of VREG tmpfs node. MFC r269053: Correct assertion. tmpfs vm object is always at the bottom of the shadow chain.
Diffstat (limited to 'sys/fs/tmpfs')
-rw-r--r--sys/fs/tmpfs/tmpfs_subr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/tmpfs/tmpfs_subr.c b/sys/fs/tmpfs/tmpfs_subr.c
index 78a8dcf..1770d0b 100644
--- a/sys/fs/tmpfs/tmpfs_subr.c
+++ b/sys/fs/tmpfs/tmpfs_subr.c
@@ -231,7 +231,7 @@ tmpfs_alloc_node(struct tmpfs_mount *tmp, enum vtype type,
NULL /* XXXKIB - tmpfs needs swap reservation */);
VM_OBJECT_WLOCK(obj);
/* OBJ_TMPFS is set together with the setting of vp->v_object */
- vm_object_set_flag(obj, OBJ_NOSPLIT);
+ vm_object_set_flag(obj, OBJ_NOSPLIT | OBJ_TMPFS_NODE);
vm_object_clear_flag(obj, OBJ_ONEMAPPING);
VM_OBJECT_WUNLOCK(obj);
break;
OpenPOWER on IntegriCloud