Whamcloud - gitweb
LU-709 build: clean up quota_read, follow_link and RCU
[fs/lustre-release.git] / lustre / include / linux / lustre_lite.h
1 /*
2  * GPL HEADER START
3  *
4  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License version 2 only,
8  * as published by the Free Software Foundation.
9  *
10  * This program is distributed in the hope that it will be useful, but
11  * WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * General Public License version 2 for more details (a copy is included
14  * in the LICENSE file that accompanied this code).
15  *
16  * You should have received a copy of the GNU General Public License
17  * version 2 along with this program; If not, see
18  * http://www.sun.com/software/products/lustre/docs/GPLv2.pdf
19  *
20  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
21  * CA 95054 USA or visit www.sun.com if you need additional information or
22  * have any questions.
23  *
24  * GPL HEADER END
25  */
26 /*
27  * Copyright (c) 2002, 2010, Oracle and/or its affiliates. All rights reserved.
28  * Use is subject to license terms.
29  */
30 /*
31  * This file is part of Lustre, http://www.lustre.org/
32  * Lustre is a trademark of Sun Microsystems, Inc.
33  */
34
35 #ifndef _LINUX_LL_H
36 #define _LINUX_LL_H
37
38 #ifndef _LL_H
39 #error Do not #include this file directly. #include <lustre_lite.h> instead
40 #endif
41
42 #ifdef __KERNEL__
43
44 #include <linux/version.h>
45
46 #include <asm/statfs.h>
47
48 #include <linux/fs.h>
49 #include <linux/dcache.h>
50 #include <linux/proc_fs.h>
51
52 #include <obd_class.h>
53 #include <lustre_net.h>
54 #include <lustre_ha.h>
55
56 #include <linux/rbtree.h>
57 #include <linux/lustre_compat25.h>
58 #include <linux/pagemap.h>
59
60 /* lprocfs.c */
61 enum {
62          LPROC_LL_DIRTY_HITS = 0,
63          LPROC_LL_DIRTY_MISSES,
64          LPROC_LL_READ_BYTES,
65          LPROC_LL_WRITE_BYTES,
66          LPROC_LL_BRW_READ,
67          LPROC_LL_BRW_WRITE,
68          LPROC_LL_OSC_READ,
69          LPROC_LL_OSC_WRITE,
70          LPROC_LL_IOCTL,
71          LPROC_LL_OPEN,
72          LPROC_LL_RELEASE,
73          LPROC_LL_MAP,
74          LPROC_LL_LLSEEK,
75          LPROC_LL_FSYNC,
76          LPROC_LL_READDIR,
77          LPROC_LL_SETATTR,
78          LPROC_LL_TRUNC,
79          LPROC_LL_FLOCK,
80          LPROC_LL_GETATTR,
81          LPROC_LL_CREATE,
82          LPROC_LL_LINK,
83          LPROC_LL_UNLINK,
84          LPROC_LL_SYMLINK,
85          LPROC_LL_MKDIR,
86          LPROC_LL_RMDIR,
87          LPROC_LL_MKNOD,
88          LPROC_LL_RENAME,
89          LPROC_LL_STAFS,
90          LPROC_LL_ALLOC_INODE,
91          LPROC_LL_SETXATTR,
92          LPROC_LL_GETXATTR,
93          LPROC_LL_LISTXATTR,
94          LPROC_LL_REMOVEXATTR,
95          LPROC_LL_INODE_PERM,
96          LPROC_LL_FILE_OPCODES
97 };
98
99 #else
100 #include <lustre/lustre_idl.h>
101 #endif /* __KERNEL__ */
102
103 #endif