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