pohmelfs: propagate umode_t
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 26 Jul 2011 07:16:55 +0000 (03:16 -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>
drivers/staging/pohmelfs/dir.c
drivers/staging/pohmelfs/netfs.h
fs/ramfs/inode.c
include/linux/ramfs.h

index c33e959b6efe7bdb5f47860ccb7e2967e484eeab..2ee4491b7136f24a38cdb52a01dc043ee79b12c8 100644 (file)
@@ -590,13 +590,13 @@ out:
  * during writeback for given inode.
  */
 struct pohmelfs_inode *pohmelfs_create_entry_local(struct pohmelfs_sb *psb,
-       struct pohmelfs_inode *parent, struct qstr *str, u64 start, int mode)
+       struct pohmelfs_inode *parent, struct qstr *str, u64 start, umode_t mode)
 {
        struct pohmelfs_inode *npi;
        int err = -ENOMEM;
        struct netfs_inode_info info;
 
-       dprintk("%s: name: '%s', mode: %o, start: %llu.\n",
+       dprintk("%s: name: '%s', mode: %ho, start: %llu.\n",
                        __func__, str->name, mode, start);
 
        info.mode = mode;
@@ -630,7 +630,8 @@ err_out_unlock:
 /*
  * Create local object and bind it to dentry.
  */
-static int pohmelfs_create_entry(struct inode *dir, struct dentry *dentry, u64 start, int mode)
+static int pohmelfs_create_entry(struct inode *dir, struct dentry *dentry,
+                                u64 start, umode_t mode)
 {
        struct pohmelfs_sb *psb = POHMELFS_SB(dir->i_sb);
        struct pohmelfs_inode *npi, *parent;
index 985b6b755d5d34aa84f1a0be310b167768894cf0..f26894f2a57f23f0ebe2617e3692b247defeb649 100644 (file)
@@ -776,7 +776,7 @@ struct pohmelfs_name *pohmelfs_search_hash(struct pohmelfs_inode *pi, u32 hash);
 void pohmelfs_inode_del_inode(struct pohmelfs_sb *psb, struct pohmelfs_inode *pi);
 
 struct pohmelfs_inode *pohmelfs_create_entry_local(struct pohmelfs_sb *psb,
-       struct pohmelfs_inode *parent, struct qstr *str, u64 start, int mode);
+       struct pohmelfs_inode *parent, struct qstr *str, u64 start, umode_t mode);
 
 int pohmelfs_write_create_inode(struct pohmelfs_inode *pi);
 
index 145680e9d581391048cb0881675aa7241cd788ba..aec766abe3affdd34b4ccff46036ae2902950398 100644 (file)
@@ -52,7 +52,7 @@ static struct backing_dev_info ramfs_backing_dev_info = {
 };
 
 struct inode *ramfs_get_inode(struct super_block *sb,
-                               const struct inode *dir, int mode, dev_t dev)
+                               const struct inode *dir, umode_t mode, dev_t dev)
 {
        struct inode * inode = new_inode(sb);
 
index 3a8f0c9b29336f09acbd70ec1bbb01ce3ac5dfb1..5bf5500db83de4bfec412a2dd47bad2742c8737a 100644 (file)
@@ -2,7 +2,7 @@
 #define _LINUX_RAMFS_H
 
 struct inode *ramfs_get_inode(struct super_block *sb, const struct inode *dir,
-        int mode, dev_t dev);
+        umode_t mode, dev_t dev);
 extern struct dentry *ramfs_mount(struct file_system_type *fs_type,
         int flags, const char *dev_name, void *data);