1 /* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
2 * vim:expandtab:shiftwidth=8:tabstop=8:
10 #include <linux/version.h>
12 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0))
13 #include <asm/statfs.h>
17 #include <linux/dcache.h>
18 #include <linux/jbd.h>
19 #include <linux/ext3_fs.h>
20 #include <linux/proc_fs.h>
22 #include <linux/obd_class.h>
23 #include <linux/lustre_net.h>
24 #include <linux/lustre_mds.h>
25 #include <linux/lustre_ha.h>
27 #include <linux/rbtree.h>
28 #include <linux/lustre_compat25.h>
29 #include <linux/pagemap.h>
31 /* careful, this is easy to screw up */
32 #define PAGE_CACHE_MAXBYTES ((__u64)(~0UL) << PAGE_CACHE_SHIFT)
36 LPROC_LL_DIRTY_HITS = 0,
37 LPROC_LL_DIRTY_MISSES,
38 LPROC_LL_WB_WRITEPAGE,
55 #if (LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0))
64 LPROC_LL_DIRECT_WRITE,
69 #include <linux/lustre_idl.h>
70 #endif /* __KERNEL__ */
72 #define LLAP_FROM_COOKIE(c) \
73 (LASSERT(((struct ll_async_page *)(c))->llap_magic == LLAP_MAGIC), \
74 (struct ll_async_page *)(c))
75 #define LL_MAX_BLKSIZE (4UL * 1024 * 1024)
77 #include <lustre/lustre_user.h>