struct hlist_head *hash;
int nr_hash, i;
- OBD_ALLOC(hash, PAGE_SIZE);
+ OBD_ALLOC(hash, CFS_PAGE_SIZE);
if (!hash)
return NULL;
- nr_hash = PAGE_SIZE / sizeof(struct hlist_head);
+ nr_hash = CFS_PAGE_SIZE / sizeof(struct hlist_head);
LASSERT(nr_hash > NR_CAPAHASH);
for (i = 0; i < NR_CAPAHASH; i++)
}
spin_unlock(&capa_lock);
- OBD_FREE(hash, PAGE_SIZE);
+ OBD_FREE(hash, CFS_PAGE_SIZE);
}
static inline int const capa_hashfn(struct lu_fid *fid)
int keylen;
struct scatterlist sl = {
.page = virt_to_page(capa),
- .offset = (unsigned long)(capa) % PAGE_SIZE,
+ .offset = (unsigned long)(capa) % CFS_PAGE_SIZE,
.length = offsetof(struct lustre_capa, lc_hmac),
};