summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAl Viro2015-05-14 00:25:57 +0200
committerGreg Kroah-Hartman2015-05-31 02:11:47 +0200
commit907b8a0012934c95f8074f68a018aa0c120409b9 (patch)
tree427102250f23100beb972ab595e7156707417b5d
parentlustre: kill unused macro (LOOKUP_CONTINUE) (diff)
downloadkernel-qcow2-linux-907b8a0012934c95f8074f68a018aa0c120409b9.tar.gz
kernel-qcow2-linux-907b8a0012934c95f8074f68a018aa0c120409b9.tar.xz
kernel-qcow2-linux-907b8a0012934c95f8074f68a018aa0c120409b9.zip
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.h15
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 3925db160650..513c81f43d6e 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