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 
43 #include <asm/statfs.h>
44 
45 #include <linux/fs.h>
46 #include <linux/dcache.h>
47 #include <linux/proc_fs.h>
48 
49 #include "../obd_class.h"
50 #include "../lustre_net.h"
51 #include "../lustre_ha.h"
52 
53 #include <linux/rbtree.h>
54 #include "../../include/linux/lustre_compat25.h"
55 #include <linux/pagemap.h>
56 
57 /* lprocfs.c */
58 enum {
59 	 LPROC_LL_DIRTY_HITS = 0,
60 	 LPROC_LL_DIRTY_MISSES,
61 	 LPROC_LL_READ_BYTES,
62 	 LPROC_LL_WRITE_BYTES,
63 	 LPROC_LL_BRW_READ,
64 	 LPROC_LL_BRW_WRITE,
65 	 LPROC_LL_OSC_READ,
66 	 LPROC_LL_OSC_WRITE,
67 	 LPROC_LL_IOCTL,
68 	 LPROC_LL_OPEN,
69 	 LPROC_LL_RELEASE,
70 	 LPROC_LL_MAP,
71 	 LPROC_LL_LLSEEK,
72 	 LPROC_LL_FSYNC,
73 	 LPROC_LL_READDIR,
74 	 LPROC_LL_SETATTR,
75 	 LPROC_LL_TRUNC,
76 	 LPROC_LL_FLOCK,
77 	 LPROC_LL_GETATTR,
78 	 LPROC_LL_CREATE,
79 	 LPROC_LL_LINK,
80 	 LPROC_LL_UNLINK,
81 	 LPROC_LL_SYMLINK,
82 	 LPROC_LL_MKDIR,
83 	 LPROC_LL_RMDIR,
84 	 LPROC_LL_MKNOD,
85 	 LPROC_LL_RENAME,
86 	 LPROC_LL_STAFS,
87 	 LPROC_LL_ALLOC_INODE,
88 	 LPROC_LL_SETXATTR,
89 	 LPROC_LL_GETXATTR,
90 	 LPROC_LL_GETXATTR_HITS,
91 	 LPROC_LL_LISTXATTR,
92 	 LPROC_LL_REMOVEXATTR,
93 	 LPROC_LL_INODE_PERM,
94 	 LPROC_LL_FILE_OPCODES
95 };
96 
97 
98 #endif
99