Commit 587228be authored by Al Viro's avatar Al Viro

omfs: propagate umode_t

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 8e071892
...@@ -255,7 +255,7 @@ static int omfs_remove(struct inode *dir, struct dentry *dentry) ...@@ -255,7 +255,7 @@ static int omfs_remove(struct inode *dir, struct dentry *dentry)
return 0; return 0;
} }
static int omfs_add_node(struct inode *dir, struct dentry *dentry, int mode) static int omfs_add_node(struct inode *dir, struct dentry *dentry, umode_t mode)
{ {
int err; int err;
struct inode *inode = omfs_new_inode(dir, mode); struct inode *inode = omfs_new_inode(dir, mode);
......
...@@ -28,7 +28,7 @@ struct buffer_head *omfs_bread(struct super_block *sb, sector_t block) ...@@ -28,7 +28,7 @@ struct buffer_head *omfs_bread(struct super_block *sb, sector_t block)
return sb_bread(sb, clus_to_blk(sbi, block)); return sb_bread(sb, clus_to_blk(sbi, block));
} }
struct inode *omfs_new_inode(struct inode *dir, int mode) struct inode *omfs_new_inode(struct inode *dir, umode_t mode)
{ {
struct inode *inode; struct inode *inode;
u64 new_block; u64 new_block;
......
...@@ -60,7 +60,7 @@ extern int omfs_shrink_inode(struct inode *inode); ...@@ -60,7 +60,7 @@ extern int omfs_shrink_inode(struct inode *inode);
/* inode.c */ /* inode.c */
extern struct buffer_head *omfs_bread(struct super_block *sb, sector_t block); extern struct buffer_head *omfs_bread(struct super_block *sb, sector_t block);
extern struct inode *omfs_iget(struct super_block *sb, ino_t inode); extern struct inode *omfs_iget(struct super_block *sb, ino_t inode);
extern struct inode *omfs_new_inode(struct inode *dir, int mode); extern struct inode *omfs_new_inode(struct inode *dir, umode_t mode);
extern int omfs_reserve_block(struct super_block *sb, sector_t block); extern int omfs_reserve_block(struct super_block *sb, sector_t block);
extern int omfs_find_empty_block(struct super_block *sb, int mode, ino_t *ino); extern int omfs_find_empty_block(struct super_block *sb, int mode, ino_t *ino);
extern int omfs_sync_inode(struct inode *inode); extern int omfs_sync_inode(struct inode *inode);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment