fuse: propagate umode_t
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 26 Jul 2011 07:17:33 +0000 (03:17 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 4 Jan 2012 03:55:07 +0000 (22:55 -0500)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

fs/fuse/dir.c
fs/fuse/fuse_i.h

index b4c09c5..5ddd6ea 100644 (file)
@@ -369,8 +369,8 @@ static struct dentry *fuse_lookup(struct inode *dir, struct dentry *entry,
  * If the filesystem doesn't support this, then fall back to separate
  * 'mknod' + 'open' requests.
  */
-static int fuse_create_open(struct inode *dir, struct dentry *entry, int mode,
-                           struct nameidata *nd)
+static int fuse_create_open(struct inode *dir, struct dentry *entry,
+                           umode_t mode, struct nameidata *nd)
 {
        int err;
        struct inode *inode;
@@ -480,7 +480,7 @@ static int fuse_create_open(struct inode *dir, struct dentry *entry, int mode,
  */
 static int create_new_entry(struct fuse_conn *fc, struct fuse_req *req,
                            struct inode *dir, struct dentry *entry,
-                           int mode)
+                           umode_t mode)
 {
        struct fuse_entry_out outarg;
        struct inode *inode;
index cf6db0a..1964da0 100644 (file)
@@ -80,7 +80,7 @@ struct fuse_inode {
 
        /** The sticky bit in inode->i_mode may have been removed, so
            preserve the original mode */
-       mode_t orig_i_mode;
+       umode_t orig_i_mode;
 
        /** Version of last attribute change */
        u64 attr_version;