X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Finclude%2Flinux%2Flustre_patchless_compat.h;h=36d41a394872bd36b6cea26ca6ed1ea830fd4e05;hp=b5ca4663301cd659463c904d4d3cd54f3f2ed27c;hb=4275694704e0fb82cd6980bec082cf358df0654c;hpb=bf40f1d8f7b22d8418f500642269f23c7d1e0f9b diff --git a/lustre/include/linux/lustre_patchless_compat.h b/lustre/include/linux/lustre_patchless_compat.h index b5ca466..36d41a3 100644 --- a/lustre/include/linux/lustre_patchless_compat.h +++ b/lustre/include/linux/lustre_patchless_compat.h @@ -96,11 +96,24 @@ static inline void d_rehash_cond(struct dentry * entry, int lock) #define __d_rehash(dentry, lock) d_rehash_cond(dentry, lock) #endif /* !HAVE_D_REHASH_COND && !HAVE___D_REHASH*/ -#ifndef ATTR_FROM_OPEN -#define ATTR_FROM_OPEN 0 -#endif +#ifdef ATTR_OPEN +# define ATTR_FROM_OPEN ATTR_OPEN +#else +# ifndef ATTR_FROM_OPEN +# define ATTR_FROM_OPEN 0 +# endif +#endif /* ATTR_OPEN */ + #ifndef ATTR_RAW #define ATTR_RAW 0 #endif +#ifndef ATTR_CTIME_SET +/* + * set ATTR_CTIME_SET to a high value to avoid any risk of collision with other + * ATTR_* attributes (see bug 13828) + */ +#define ATTR_CTIME_SET (1 << 28) #endif + +#endif /* LUSTRE_PATCHLESS_COMPAT_H */