fbsd-pagefree-proto-20030619
authorDavid Magda <dmagda@magda.ca>
Thu, 19 Jun 2003 14:56:49 +0000 (14:56 +0000)
committerJim Rees <rees@umich.edu>
Thu, 19 Jun 2003 14:56:49 +0000 (14:56 +0000)
s/vnode_pager_freepage/vm_page_free/ to avoid proto conflict
remove vnode_pager_freepage from afs_prototypes.h

src/afs/FBSD/osi_vnodeops.c
src/afs/afs_prototypes.h

index d24206f..c782058 100644 (file)
@@ -426,7 +426,7 @@ afs_vop_getpages(ap)
            /* vm_page_zero_invalid(m, TRUE); */
            for (i = 0; i < npages; ++i) {
                if (i != ap->a_reqpage)
-                   vnode_pager_freepage(ap->a_m[i]);
+                   vm_page_free(ap->a_m[i]);
            }
            return(0);
        }
@@ -459,7 +459,7 @@ afs_vop_getpages(ap)
     if (code && (uio.uio_resid == ap->a_count)) {
        for (i = 0; i < npages; ++i) {
            if (i != ap->a_reqpage)
-               vnode_pager_freepage(ap->a_m[i]);
+               vm_page_free(ap->a_m[i]);
        }
        return VM_PAGER_ERROR;
     }
@@ -507,7 +507,7 @@ afs_vop_getpages(ap)
                    vm_page_deactivate(m);
                vm_page_wakeup(m);
            } else {
-               vnode_pager_freepage(m);
+               vm_page_free(m);
            }
         }
     }
index 2bf3894..a5dfe32 100644 (file)
@@ -864,7 +864,6 @@ extern int afs_closex(register struct file *afd);
 /* other VNOPS (please fix these) */
 extern int afs_open();
 extern int afs_close();
-extern int vnode_pager_freepage();
 extern int HandleIoctl();
 extern int afs_fsync();
 extern int afs_remove();