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>
Sun, 26 May 2013 03:52:30 +0000 (23:52 -0400)
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/wrapfs/inode.c

index 8c07388c5699434715fa54b86590ef042b07e41a..866838e5dca8b31e07189fcfa6dfe47c9fbed432 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;
@@ -170,7 +170,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;
@@ -238,7 +238,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;