"New" VM system from John Dyson & myself. For a run-down of the
[unix-history] / sys / ufs / mfs_vnops.c
index dfbdf65..b349d6e 100644 (file)
@@ -30,7 +30,8 @@
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
  *
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
  *
- *     @(#)mfs_vnops.c 7.22 (Berkeley) 4/16/91
+ *     from: @(#)mfs_vnops.c   7.22 (Berkeley) 4/16/91
+ *     $Id: mfs_vnops.c,v 1.2 1993/10/16 18:17:44 rgrimes Exp $
  */
 
 #include "param.h"
  */
 
 #include "param.h"
@@ -93,6 +94,7 @@ struct vnodeops mfs_vnodeops = {
  * so we can tell when we are doing I/O to ourself.
  */
 /* ARGSUSED */
  * so we can tell when we are doing I/O to ourself.
  */
 /* ARGSUSED */
+int
 mfs_open(vp, mode, cred, p)
        register struct vnode *vp;
        int mode;
 mfs_open(vp, mode, cred, p)
        register struct vnode *vp;
        int mode;
@@ -111,6 +113,7 @@ mfs_open(vp, mode, cred, p)
  * Ioctl operation.
  */
 /* ARGSUSED */
  * Ioctl operation.
  */
 /* ARGSUSED */
+int
 mfs_ioctl(vp, com, data, fflag, cred, p)
        struct vnode *vp;
        int com;
 mfs_ioctl(vp, com, data, fflag, cred, p)
        struct vnode *vp;
        int com;
@@ -126,6 +129,7 @@ mfs_ioctl(vp, com, data, fflag, cred, p)
 /*
  * Pass I/O requests to the memory filesystem process.
  */
 /*
  * Pass I/O requests to the memory filesystem process.
  */
+int
 mfs_strategy(bp)
        register struct buf *bp;
 {
 mfs_strategy(bp)
        register struct buf *bp;
 {
@@ -151,6 +155,7 @@ mfs_strategy(bp)
  *
  * Trivial since buffer has already been mapping into KVA space.
  */
  *
  * Trivial since buffer has already been mapping into KVA space.
  */
+void
 mfs_doio(bp, base)
        register struct buf *bp;
        caddr_t base;
 mfs_doio(bp, base)
        register struct buf *bp;
        caddr_t base;
@@ -168,6 +173,7 @@ mfs_doio(bp, base)
 /*
  * This is a noop, simply returning what one has been given.
  */
 /*
  * This is a noop, simply returning what one has been given.
  */
+int
 mfs_bmap(vp, bn, vpp, bnp)
        struct vnode *vp;
        daddr_t bn;
 mfs_bmap(vp, bn, vpp, bnp)
        struct vnode *vp;
        daddr_t bn;
@@ -186,6 +192,7 @@ mfs_bmap(vp, bn, vpp, bnp)
  * Memory filesystem close routine
  */
 /* ARGSUSED */
  * Memory filesystem close routine
  */
 /* ARGSUSED */
+int
 mfs_close(vp, flag, cred, p)
        register struct vnode *vp;
        int flag;
 mfs_close(vp, flag, cred, p)
        register struct vnode *vp;
        int flag;
@@ -231,6 +238,7 @@ mfs_close(vp, flag, cred, p)
  * Memory filesystem inactive routine
  */
 /* ARGSUSED */
  * Memory filesystem inactive routine
  */
 /* ARGSUSED */
+int
 mfs_inactive(vp, p)
        struct vnode *vp;
        struct proc *p;
 mfs_inactive(vp, p)
        struct vnode *vp;
        struct proc *p;
@@ -244,6 +252,7 @@ mfs_inactive(vp, p)
 /*
  * Print out the contents of an mfsnode.
  */
 /*
  * Print out the contents of an mfsnode.
  */
+void
 mfs_print(vp)
        struct vnode *vp;
 {
 mfs_print(vp)
        struct vnode *vp;
 {
@@ -256,6 +265,7 @@ mfs_print(vp)
 /*
  * Block device bad operation
  */
 /*
  * Block device bad operation
  */
+int
 mfs_badop()
 {
 
 mfs_badop()
 {
 
@@ -266,6 +276,7 @@ mfs_badop()
 /*
  * Memory based filesystem initialization.
  */
 /*
  * Memory based filesystem initialization.
  */
+void
 mfs_init()
 {
 
 mfs_init()
 {