Wrapfs: use mode_t
authorErez Zadok <ezk@cs.sunysb.edu>
Tue, 31 Jan 2012 09:40:19 +0000 (04:40 -0500)
committerErez Zadok <ezk@cs.sunysb.edu>
Tue, 27 Dec 2016 03:11:35 +0000 (22:11 -0500)
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/wrapfs/inode.c

index 1dc364548efe209b48375d3ec61237a20053d3a7..b2653b3a372f468ed2fa7ce0c6f19025cdd432be 100644 (file)
@@ -12,7 +12,7 @@
 #include "wrapfs.h"
 
 static int wrapfs_create(struct inode *dir, struct dentry *dentry,
-                        int mode, struct nameidata *nd)
+                        umode_t mode, struct nameidata *nd)
 {
        int err = 0;
        struct dentry *lower_dentry;
@@ -167,7 +167,7 @@ out_unlock:
        return err;
 }
 
-static int wrapfs_mkdir(struct inode *dir, struct dentry *dentry, int mode)
+static int wrapfs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode)
 {
        int err = 0;
        struct dentry *lower_dentry;
@@ -235,7 +235,7 @@ out_unlock:
        return err;
 }
 
-static int wrapfs_mknod(struct inode *dir, struct dentry *dentry, int mode,
+static int wrapfs_mknod(struct inode *dir, struct dentry *dentry, umode_t mode,
                        dev_t dev)
 {
        int err = 0;