X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fportals%2Finclude%2Flinux%2Fportals_compat25.h;h=4803a9b0a7daf7f650e8675a83d04a61f294ad52;hb=3de901fceee79de12a31428bcc6ba3a00f10d1fe;hp=43618589bc2fe58837c886d9e49d71903cab516a;hpb=bf0e356263dcf9b83f485450436e5e61a7acebd1;p=fs%2Flustre-release.git diff --git a/lustre/portals/include/linux/portals_compat25.h b/lustre/portals/include/linux/portals_compat25.h index 43618589..4803a9b 100644 --- a/lustre/portals/include/linux/portals_compat25.h +++ b/lustre/portals/include/linux/portals_compat25.h @@ -64,4 +64,14 @@ sprintf(comm, fmt, ## a) #endif +#ifdef HAVE_PAGE_LIST +/* 2.4 alloc_page users can use page->list */ +#define PAGE_LIST_ENTRY list +#define PAGE_LIST(page) ((page)->list) +#else +/* 2.6 alloc_page users can use page->lru */ +#define PAGE_LIST_ENTRY lru +#define PAGE_LIST(page) ((page)->lru) +#endif + #endif /* _PORTALS_COMPAT_H */