139388Smckusick /* 239388Smckusick * Copyright (c) 1989 The Regents of the University of California. 339388Smckusick * All rights reserved. 439388Smckusick * 5*44536Sbostic * %sccs.include.redist.c% 639388Smckusick * 7*44536Sbostic * @(#)mfsnode.h 7.2 (Berkeley) 06/28/90 839388Smckusick */ 939388Smckusick 1039388Smckusick /* 1139388Smckusick * This structure defines the control data for the memory 1239388Smckusick * based file system. 1339388Smckusick */ 1439388Smckusick 1539388Smckusick struct mfsnode { 1639388Smckusick struct vnode *mfs_vnode; /* vnode associated with this mfsnode */ 1739388Smckusick caddr_t mfs_baseoff; /* base of file system in memory */ 1839388Smckusick long mfs_size; /* size of memory file system */ 1939388Smckusick pid_t mfs_pid; /* supporting process pid */ 2039388Smckusick struct buf *mfs_buflist; /* list of I/O requests */ 2139388Smckusick long mfs_spare[4]; 2239388Smckusick }; 2339388Smckusick 2439388Smckusick /* 2539388Smckusick * Convert between mfsnode pointers and vnode pointers 2639388Smckusick */ 2739388Smckusick #define VTOMFS(vp) ((struct mfsnode *)(vp)->v_data) 2839388Smckusick #define MFSTOV(mfsp) ((mfsp)->mfs_vnode) 29