Whamcloud - gitweb
Branch HEAD
[fs/lustre-release.git] / lustre / include / linux / lustre_lite.h
1 /* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
2  * vim:expandtab:shiftwidth=8:tabstop=8:
3  */
4
5 #ifndef _LINUX_LL_H
6 #define _LINUX_LL_H
7
8 #ifndef _LL_H
9 #error Do not #include this file directly. #include <lustre_lite.h> instead
10 #endif
11
12 #ifdef __KERNEL__
13
14 #include <linux/version.h>
15
16 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0))
17 #include <asm/statfs.h>
18 #endif
19
20 #include <linux/fs.h>
21 #include <linux/dcache.h>
22 #include <linux/proc_fs.h>
23
24 #include <obd_class.h>
25 #include <lustre_net.h>
26 #include <lustre_ha.h>
27
28 #include <linux/rbtree.h>
29 #include <linux/lustre_compat25.h>
30 #include <linux/pagemap.h>
31
32 /* lprocfs.c */
33 enum {
34          LPROC_LL_DIRTY_HITS = 0,
35          LPROC_LL_DIRTY_MISSES,
36          LPROC_LL_WB_WRITEPAGE,
37          LPROC_LL_WB_PRESSURE,
38          LPROC_LL_WB_OK,
39          LPROC_LL_WB_FAIL,
40          LPROC_LL_READ_BYTES,
41          LPROC_LL_WRITE_BYTES,
42          LPROC_LL_BRW_READ,
43          LPROC_LL_BRW_WRITE,
44          LPROC_LL_IOCTL,
45          LPROC_LL_OPEN,
46          LPROC_LL_RELEASE,
47          LPROC_LL_MAP,
48          LPROC_LL_LLSEEK,
49          LPROC_LL_FSYNC,
50          LPROC_LL_SETATTR,
51          LPROC_LL_TRUNC,
52          LPROC_LL_FLOCK,
53
54 #if (LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0))
55          LPROC_LL_GETATTR,
56 #else
57          LPROC_LL_REVALIDATE,
58 #endif
59          LPROC_LL_STAFS,
60          LPROC_LL_ALLOC_INODE,
61          LPROC_LL_SETXATTR,
62          LPROC_LL_GETXATTR,
63          LPROC_LL_LISTXATTR,
64          LPROC_LL_REMOVEXATTR,
65          LPROC_LL_INODE_PERM,
66          LPROC_LL_DIRECT_READ,
67          LPROC_LL_DIRECT_WRITE,
68          LPROC_LL_FILE_OPCODES
69 };
70
71 #else
72 #include <lustre/lustre_idl.h>
73 #endif /* __KERNEL__ */
74
75 #endif