diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2015-05-13 23:25:57 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-05-31 09:11:47 +0900 |
commit | 907b8a0012934c95f8074f68a018aa0c120409b9 (patch) | |
tree | 427102250f23100beb972ab595e7156707417b5d | |
parent | 24b44e0c0b16405c597a23a3f2b3f70a055e3db8 (diff) | |
download | op-kernel-dev-907b8a0012934c95f8074f68a018aa0c120409b9.zip op-kernel-dev-907b8a0012934c95f8074f68a018aa0c120409b9.tar.gz |
lustre: kill unused helper
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/lustre/lustre/include/linux/lustre_compat25.h | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/drivers/staging/lustre/lustre/include/linux/lustre_compat25.h b/drivers/staging/lustre/lustre/include/linux/lustre_compat25.h index 3925db1..513c81f 100644 --- a/drivers/staging/lustre/lustre/include/linux/lustre_compat25.h +++ b/drivers/staging/lustre/lustre/include/linux/lustre_compat25.h @@ -189,22 +189,7 @@ static inline int ll_quota_off(struct super_block *sb, int off, int remount) #endif - -/* - * After 3.1, kernel's nameidata.intent.open.flags is different - * with lustre's lookup_intent.it_flags, as lustre's it_flags' - * lower bits equal to FMODE_xxx while kernel doesn't transliterate - * lower bits of nameidata.intent.open.flags to FMODE_xxx. - * */ #include <linux/version.h> -static inline int ll_namei_to_lookup_intent_flag(int flag) -{ -#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 1, 0) - flag = (flag & ~O_ACCMODE) | OPEN_FMODE(flag); -#endif - return flag; -} - #include <linux/fs.h> # define ll_umode_t umode_t |