staging/lustre: replace ll_umode_t with umode_t
authorOleg Drokin <green@linuxhacker.ru>
Thu, 30 Jul 2015 22:27:59 +0000 (18:27 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 31 Jul 2015 23:01:53 +0000 (16:01 -0700)
umode_t is what we need anyway, so replace all users
and drop the define.

Signed-off-by: Oleg Drokin <oleg.drokin@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/include/linux/lustre_compat25.h
drivers/staging/lustre/lustre/llite/namei.c

index d0e8f3c813a18301922ddeb5ef4fe4b1fc825419..1dcd78b9c5e5c12dc2e2347a5d72c1f398bc2e77 100644 (file)
@@ -146,10 +146,4 @@ static inline int ll_quota_off(struct super_block *sb, int off, int remount)
 # define TIMES_SET_FLAGS (ATTR_MTIME_SET | ATTR_ATIME_SET)
 #endif
 
-
-#include <linux/version.h>
-#include <linux/fs.h>
-
-# define ll_umode_t    umode_t
-
 #endif /* _COMPAT25_H */
index 72ce6e72845fddb1ea575aca3ae867b39184dcc9..2ed1e0ac55537e8fc7e1098cea6cc1f13c2e085d 100644 (file)
@@ -1008,7 +1008,7 @@ static int ll_unlink(struct inode *dir, struct dentry *dentry)
        return rc;
 }
 
-static int ll_mkdir(struct inode *dir, struct dentry *dentry, ll_umode_t mode)
+static int ll_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode)
 {
        int err;