Whamcloud - gitweb
84629e14fa672fdbb6ced115c33a6708e906596e
[fs/lustre-release.git] / lustre / include / linux / lustre_intent.h
1 #ifndef LUSTRE_INTENT_H
2 #define LUSTRE_INTENT_H
3
4 #include <linux/lustre_version.h>
5
6 #ifndef LUSTRE_KERNEL_VERSION
7
8 #define IT_OPEN     (1 << 0)
9 #define IT_CREAT    (1 << 1)
10 #define IT_READDIR  (1 << 2)
11 #define IT_GETATTR  (1 << 3)
12 #define IT_LOOKUP   (1 << 4)
13 #define IT_UNLINK   (1 << 5)
14 #define IT_TRUNC    (1 << 6)
15 #define IT_GETXATTR (1 << 7)
16
17 struct lustre_intent_data {
18         int       it_disposition;
19         int       it_status;
20         __u64     it_lock_handle;
21         void     *it_data;
22         int       it_lock_mode;
23 };
24
25 struct lookup_intent {
26         int     it_op;
27         int     it_flags;
28         int     it_create_mode;
29         union {
30                 struct lustre_intent_data lustre;
31         } d;
32 };
33
34 #endif
35 #endif