Whamcloud - gitweb
Fix an error where the garbage may be returned by this function because
[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 #define IT_OPEN     (1)
8 #define IT_CREAT    (1<<1)
9 #define IT_READDIR  (1<<2)
10 #define IT_GETATTR  (1<<3)
11 #define IT_LOOKUP   (1<<4)
12 #define IT_UNLINK   (1<<5)
13 #define IT_TRUNC    (1<<6)
14 #define IT_GETXATTR (1<<7)
15
16 struct lustre_intent_data {
17         int       it_disposition;
18         int       it_status;
19         __u64     it_lock_handle;
20         void     *it_data;
21         int       it_lock_mode;
22 };
23
24 struct lookup_intent {
25         int     it_op;
26         int     it_flags;
27         int     it_create_mode;
28         union {
29                 struct lustre_intent_data lustre;
30         } d;
31 };
32
33
34 #endif
35 #endif