Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 322105e2 authored by Al Viro's avatar Al Viro
Browse files

lustre: kill unused helper



Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 539fcc01
Loading
Loading
Loading
Loading
+0 −15
Original line number Diff line number Diff line
@@ -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