1/* $NetBSD: tmpfs_vfsops.c,v 1.10 2005/12/11 12:24:29 christos Exp $ */ 2 3/* 4 * Copyright (c) 2005 The NetBSD Foundation, Inc. 5 * All rights reserved. 6 * 7 * This code is derived from software contributed to The NetBSD Foundation 8 * by Julio M. Merino Vidal, developed as part of Google's Summer of Code --- 34 unchanged lines hidden (view full) --- 43 * tmpfs is a file system that uses NetBSD's virtual memory sub-system 44 * (the well-known UVM) to store file data and metadata in an efficient 45 * way. This means that it does not follow the structure of an on-disk 46 * file system because it simply does not need to. Instead, it uses 47 * memory-specific data structures and algorithms to automatically 48 * allocate and release resources. 49 */ 50#include <sys/cdefs.h> |
51__FBSDID("$FreeBSD: head/sys/fs/tmpfs/tmpfs_vfsops.c 173725 2007-11-18 04:52:40Z delphij $"); |
52 53#include <sys/param.h> 54#include <sys/limits.h> 55#include <sys/lock.h> 56#include <sys/mutex.h> 57#include <sys/kernel.h> 58#include <sys/stat.h> 59#include <sys/systm.h> --- 89 unchanged lines hidden (view full) --- 149 node->tn_gen++; 150 node->tn_size = 0; 151 node->tn_status = 0; 152 node->tn_flags = 0; 153 node->tn_links = 0; 154 node->tn_lockf = NULL; 155 node->tn_vnode = NULL; 156 node->tn_vpstate = 0; |
157 158 return (0); 159} 160 161static void 162tmpfs_node_dtor(void *mem, int size, void *arg) 163{ 164 struct tmpfs_node *node = (struct tmpfs_node *)mem; --- 309 unchanged lines hidden --- |