Skip to content

Commit

Permalink
pohmelfs: propagate umode_t
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <[email protected]>
  • Loading branch information
Al Viro committed Jan 4, 2012
1 parent 09208d1 commit 632861f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
7 changes: 4 additions & 3 deletions drivers/staging/pohmelfs/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -590,13 +590,13 @@ struct dentry *pohmelfs_lookup(struct inode *dir, struct dentry *dentry, struct
* 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;
Expand Down Expand Up @@ -630,7 +630,8 @@ struct pohmelfs_inode *pohmelfs_create_entry_local(struct pohmelfs_sb *psb,
/*
* 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;
Expand Down
2 changes: 1 addition & 1 deletion drivers/staging/pohmelfs/netfs.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion fs/ramfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion include/linux/ramfs.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 632861f

Please sign in to comment.