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