Fix build

Previous commit to this file was not as tested as we thought.
This one actually builds (well, except for the part where flex
doesn't like et_lex.lex.l at the moment).

Change-Id: I11d918adc50bb387c022d90cb0877a6a667e8252
Reviewed-on: http://gerrit.openafs.org/2362
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
This commit is contained in:
Ben Kaduk 2010-07-07 22:10:44 -04:00 committed by Derrick Brashear
parent 2c7a19b092
commit 4e87cb5c92

View File

@ -259,10 +259,10 @@ static __inline void ma_vm_page_unlock(vm_page_t m) {};
#endif
#if defined(AFS_FBSD70_ENV)
#define MA_PCPU_INC(c) (PCPU_INC(c))
#define MA_PCPU_ADD(c, n) (PCPU_ADD(c, n))
#define MA_PCPU_INC(c) PCPU_INC(c)
#define MA_PCPU_ADD(c, n) PCPU_ADD(c, n)
#else
#define MA_PCPU_INC(c) (PCPU_LAZY_INC(c))
#define MA_PCPU_INC(c) PCPU_LAZY_INC(c)
#define MA_PCPU_ADD(c, n) (c) += (n)
#endif
@ -807,7 +807,7 @@ afs_vop_getpages(struct vop_getpages_args *ap)
kva = (vm_offset_t) bp->b_data;
pmap_qenter(kva, ap->a_m, npages);
MA_PCPU_INC(cnt_v.vnodein);
MA_PCPU_INC(cnt.v_vnodein);
MA_PCPU_ADD(cnt.v_vnodepgsin, npages);
iov.iov_base = (caddr_t) kva;