X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/c6bf4f310a33a9262d455ea4d3f0630b1255e3fe..ea3f04195ba4a5034c9c8e9b726d4f7ce96f1832:/bsd/vm/vnode_pager.c diff --git a/bsd/vm/vnode_pager.c b/bsd/vm/vnode_pager.c index 2fae8525c..0a9075c05 100644 --- a/bsd/vm/vnode_pager.c +++ b/bsd/vm/vnode_pager.c @@ -73,6 +73,7 @@ #include #include +#include #include #include #include @@ -430,12 +431,12 @@ vnode_pageout(struct vnode *vp, * of it's pages */ for (offset = upl_offset; isize; isize -= PAGE_SIZE, offset += PAGE_SIZE) { -#if NFSCLIENT +#if CONFIG_NFS_CLIENT if (vp->v_tag == VT_NFS) { /* check with nfs if page is OK to drop */ error = nfs_buf_page_inval(vp, (off_t)f_offset); } else -#endif +#endif /* CONFIG_NFS_CLIENT */ { blkno = ubc_offtoblk(vp, (off_t)f_offset); error = buf_invalblkno(vp, blkno, 0); @@ -487,12 +488,12 @@ vnode_pageout(struct vnode *vp, * Note we must not sleep here if the buffer is busy - that is * a lock inversion which causes deadlock. */ -#if NFSCLIENT +#if CONFIG_NFS_CLIENT if (vp->v_tag == VT_NFS) { /* check with nfs if page is OK to drop */ error = nfs_buf_page_inval(vp, (off_t)f_offset); } else -#endif +#endif /* CONFIG_NFS_CLIENT */ { blkno = ubc_offtoblk(vp, (off_t)f_offset); error = buf_invalblkno(vp, blkno, 0);