Commit bef41c26 authored by Al Viro's avatar Al Viro

exofs: propagate umode_t

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent c6e49e3f
...@@ -234,7 +234,7 @@ static unsigned char exofs_type_by_mode[S_IFMT >> S_SHIFT] = { ...@@ -234,7 +234,7 @@ static unsigned char exofs_type_by_mode[S_IFMT >> S_SHIFT] = {
static inline static inline
void exofs_set_de_type(struct exofs_dir_entry *de, struct inode *inode) void exofs_set_de_type(struct exofs_dir_entry *de, struct inode *inode)
{ {
mode_t mode = inode->i_mode; umode_t mode = inode->i_mode;
de->file_type = exofs_type_by_mode[(mode & S_IFMT) >> S_SHIFT]; de->file_type = exofs_type_by_mode[(mode & S_IFMT) >> S_SHIFT];
} }
......
...@@ -154,7 +154,7 @@ int exofs_write_begin(struct file *file, struct address_space *mapping, ...@@ -154,7 +154,7 @@ int exofs_write_begin(struct file *file, struct address_space *mapping,
loff_t pos, unsigned len, unsigned flags, loff_t pos, unsigned len, unsigned flags,
struct page **pagep, void **fsdata); struct page **pagep, void **fsdata);
extern struct inode *exofs_iget(struct super_block *, unsigned long); extern struct inode *exofs_iget(struct super_block *, unsigned long);
struct inode *exofs_new_inode(struct inode *, int); struct inode *exofs_new_inode(struct inode *, umode_t);
extern int exofs_write_inode(struct inode *, struct writeback_control *wbc); extern int exofs_write_inode(struct inode *, struct writeback_control *wbc);
extern void exofs_evict_inode(struct inode *); extern void exofs_evict_inode(struct inode *);
......
...@@ -1276,7 +1276,7 @@ static void create_done(struct ore_io_state *ios, void *p) ...@@ -1276,7 +1276,7 @@ static void create_done(struct ore_io_state *ios, void *p)
/* /*
* Set up a new inode and create an object for it on the OSD * Set up a new inode and create an object for it on the OSD
*/ */
struct inode *exofs_new_inode(struct inode *dir, int mode) struct inode *exofs_new_inode(struct inode *dir, umode_t mode)
{ {
struct super_block *sb = dir->i_sb; struct super_block *sb = dir->i_sb;
struct exofs_sb_info *sbi = sb->s_fs_info; struct exofs_sb_info *sbi = sb->s_fs_info;
......
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