Commit a760b03dc0ac4c9663577ca45de5e0fe1c35dc13

Authored by Al Viro
1 parent a5e7ed3287

affs: propagate umode_t

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

Showing 2 changed files with 4 additions and 4 deletions Side-by-side Diff

... ... @@ -136,7 +136,7 @@
136 136 extern u32 affs_checksum_block(struct super_block *sb, struct buffer_head *bh);
137 137 extern void affs_fix_checksum(struct super_block *sb, struct buffer_head *bh);
138 138 extern void secs_to_datestamp(time_t secs, struct affs_date *ds);
139   -extern mode_t prot_to_mode(u32 prot);
  139 +extern umode_t prot_to_mode(u32 prot);
140 140 extern void mode_to_prot(struct inode *inode);
141 141 extern void affs_error(struct super_block *sb, const char *function, const char *fmt, ...);
142 142 extern void affs_warning(struct super_block *sb, const char *function, const char *fmt, ...);
... ... @@ -390,10 +390,10 @@
390 390 ds->ticks = cpu_to_be32(secs * 50);
391 391 }
392 392  
393   -mode_t
  393 +umode_t
394 394 prot_to_mode(u32 prot)
395 395 {
396   - int mode = 0;
  396 + umode_t mode = 0;
397 397  
398 398 if (!(prot & FIBF_NOWRITE))
399 399 mode |= S_IWUSR;
... ... @@ -421,7 +421,7 @@
421 421 mode_to_prot(struct inode *inode)
422 422 {
423 423 u32 prot = AFFS_I(inode)->i_protect;
424   - mode_t mode = inode->i_mode;
  424 + umode_t mode = inode->i_mode;
425 425  
426 426 if (!(mode & S_IXUSR))
427 427 prot |= FIBF_NOEXECUTE;