diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2011-07-26 03:07:14 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-01-03 22:55:04 -0500 |
commit | c6e49e3f266dbe62773941dca8afa65f53b5415f (patch) | |
tree | d16592189d8ea9fafb15d5dcbfc1a18d3bbf8d97 /fs/nilfs2 | |
parent | 64f1426f3c4f8dde9ac9bf3f3b19b88d17f2bae6 (diff) |
nilfs: propagate umode_t
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/nilfs2')
-rw-r--r-- | fs/nilfs2/dir.c | 2 | ||||
-rw-r--r-- | fs/nilfs2/inode.c | 2 | ||||
-rw-r--r-- | fs/nilfs2/nilfs.h | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/fs/nilfs2/dir.c b/fs/nilfs2/dir.c index 3a1923943b14..ca35b3a46d17 100644 --- a/fs/nilfs2/dir.c +++ b/fs/nilfs2/dir.c | |||
@@ -251,7 +251,7 @@ nilfs_type_by_mode[S_IFMT >> S_SHIFT] = { | |||
251 | 251 | ||
252 | static void nilfs_set_de_type(struct nilfs_dir_entry *de, struct inode *inode) | 252 | static void nilfs_set_de_type(struct nilfs_dir_entry *de, struct inode *inode) |
253 | { | 253 | { |
254 | mode_t mode = inode->i_mode; | 254 | umode_t mode = inode->i_mode; |
255 | 255 | ||
256 | de->file_type = nilfs_type_by_mode[(mode & S_IFMT)>>S_SHIFT]; | 256 | de->file_type = nilfs_type_by_mode[(mode & S_IFMT)>>S_SHIFT]; |
257 | } | 257 | } |
diff --git a/fs/nilfs2/inode.c b/fs/nilfs2/inode.c index b50ffb72e5b3..8f7b95ac1f7e 100644 --- a/fs/nilfs2/inode.c +++ b/fs/nilfs2/inode.c | |||
@@ -291,7 +291,7 @@ const struct address_space_operations nilfs_aops = { | |||
291 | .is_partially_uptodate = block_is_partially_uptodate, | 291 | .is_partially_uptodate = block_is_partially_uptodate, |
292 | }; | 292 | }; |
293 | 293 | ||
294 | struct inode *nilfs_new_inode(struct inode *dir, int mode) | 294 | struct inode *nilfs_new_inode(struct inode *dir, umode_t mode) |
295 | { | 295 | { |
296 | struct super_block *sb = dir->i_sb; | 296 | struct super_block *sb = dir->i_sb; |
297 | struct the_nilfs *nilfs = sb->s_fs_info; | 297 | struct the_nilfs *nilfs = sb->s_fs_info; |
diff --git a/fs/nilfs2/nilfs.h b/fs/nilfs2/nilfs.h index 3777d138f895..250add84da76 100644 --- a/fs/nilfs2/nilfs.h +++ b/fs/nilfs2/nilfs.h | |||
@@ -246,7 +246,7 @@ int nilfs_ioctl_prepare_clean_segments(struct the_nilfs *, struct nilfs_argv *, | |||
246 | /* inode.c */ | 246 | /* inode.c */ |
247 | void nilfs_inode_add_blocks(struct inode *inode, int n); | 247 | void nilfs_inode_add_blocks(struct inode *inode, int n); |
248 | void nilfs_inode_sub_blocks(struct inode *inode, int n); | 248 | void nilfs_inode_sub_blocks(struct inode *inode, int n); |
249 | extern struct inode *nilfs_new_inode(struct inode *, int); | 249 | extern struct inode *nilfs_new_inode(struct inode *, umode_t); |
250 | extern void nilfs_free_inode(struct inode *); | 250 | extern void nilfs_free_inode(struct inode *); |
251 | extern int nilfs_get_block(struct inode *, sector_t, struct buffer_head *, int); | 251 | extern int nilfs_get_block(struct inode *, sector_t, struct buffer_head *, int); |
252 | extern void nilfs_set_inode_flags(struct inode *); | 252 | extern void nilfs_set_inode_flags(struct inode *); |