]> git.proxmox.com Git - mirror_spl-debian.git/commitdiff
Remove VN_HOLD/VN_RELE/VOP_PUTPAGE
authorBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 11 Jan 2011 19:46:49 +0000 (11:46 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 12 Jan 2011 19:38:05 +0000 (11:38 -0800)
Previously these were defined to noops but rather than give
the misleading impression that these are actually implemented
I'm removing the type entirely for clarity.

include/sys/vnode.h
module/spl/spl-kobj.c
module/splat/splat-vnode.c

index e43d9ef62146edc124c48a767ab91d13649e32ca..d017506ba161e274826670d366a6f92bad6ed1f4 100644 (file)
@@ -234,24 +234,11 @@ extern int vn_set_pwd(const char *filename);
 int vn_init(void);
 void vn_fini(void);
 
-static __inline__ int
-vn_rele(vnode_t *vp)
-{
-       return 0;
-} /* vn_rele() */
-
-static __inline__ int
-vn_putpage(vnode_t *vp, offset_t off, ssize_t size,
-          int flags, void *x1, void *x2) {
-       return 0;
-} /* vn_putpage() */
-
 #define VOP_CLOSE                              vn_close
 #define VOP_SEEK                               vn_seek
-#define VN_RELE                                        vn_rele
 #define VOP_GETATTR                            vn_getattr
 #define VOP_FSYNC                              vn_fsync
-#define VOP_PUTPAGE                            vn_putpage
+#define VOP_PUTPAGE(vp, o, s, f, x1, x2)       ((void)0)
 #define vn_is_readonly(vp)                     0
 #define getf                                   vn_getf
 #define releasef                               vn_releasef
index 226a1297118b37b1b0d38c422abed8c40d52d345..684d5722657590799a07e61f70a8234228c3a987 100644 (file)
@@ -61,7 +61,6 @@ kobj_close_file(struct _buf *file)
 {
        SENTRY;
        VOP_CLOSE(file->vp, 0, 0, 0, 0, 0);
-       VN_RELE(file->vp);
         kfree(file);
         SEXIT;
 } /* kobj_close_file() */
index 1955841e261ff625b1d165684fc9196f6928c292..0cd28a690e34c4f879219d06a1b9cfd20c747cfb 100644 (file)
@@ -124,7 +124,6 @@ splat_vnode_test1(struct file *file, void *arg)
        }
 
         rc = VOP_CLOSE(vp, 0, 0, 0, 0, 0);
-        VN_RELE(vp);
 
        if (rc) {
                splat_vprint(file, SPLAT_VNODE_TEST1_NAME,
@@ -154,7 +153,6 @@ splat_vnode_test2(struct file *file, void *arg)
        }
 
         rc = VOP_CLOSE(vp, 0, 0, 0, 0, 0);
-        VN_RELE(vp);
 
        if (rc) {
                splat_vprint(file, SPLAT_VNODE_TEST2_NAME,
@@ -224,7 +222,6 @@ splat_vnode_test3(struct file *file, void *arg)
 
 out:
         VOP_CLOSE(vp, 0, 0, 0, 0, 0);
-        VN_RELE(vp);
        vn_remove(SPLAT_VNODE_TEST_FILE_RW, UIO_SYSSPACE, RMFILE);
 
         return -rc;
@@ -259,7 +256,6 @@ splat_vnode_test4(struct file *file, void *arg)
        }
 
         VOP_CLOSE(vp, 0, 0, 0, 0, 0);
-        VN_RELE(vp);
 
        rc = vn_rename(SPLAT_VNODE_TEST_FILE_RW1,SPLAT_VNODE_TEST_FILE_RW2,0);
        if (rc) {
@@ -305,7 +301,6 @@ splat_vnode_test4(struct file *file, void *arg)
                     SPLAT_VNODE_TEST_FILE_RW1, SPLAT_VNODE_TEST_FILE_RW2);
 out2:
         VOP_CLOSE(vp, 0, 0, 0, 0, 0);
-        VN_RELE(vp);
 out:
        vn_remove(SPLAT_VNODE_TEST_FILE_RW1, UIO_SYSSPACE, RMFILE);
        vn_remove(SPLAT_VNODE_TEST_FILE_RW2, UIO_SYSSPACE, RMFILE);
@@ -350,7 +345,6 @@ splat_vnode_test5(struct file *file, void *arg)
 
 out:
         VOP_CLOSE(vp, 0, 0, 0, 0, 0);
-        VN_RELE(vp);
 
         return -rc;
 } /* splat_vnode_test5() */
@@ -395,7 +389,6 @@ splat_vnode_test6(struct file *file, void *arg)
                     "fsync'ed test file %s\n", SPLAT_VNODE_TEST_FILE_RW);
 out:
         VOP_CLOSE(vp, 0, 0, 0, 0, 0);
-        VN_RELE(vp);
        vn_remove(SPLAT_VNODE_TEST_FILE_RW, UIO_SYSSPACE, RMFILE);
 
         return -rc;