diff options
-rw-r--r-- | fs/9p/v9fs_vfs.h | 4 | ||||
-rw-r--r-- | fs/9p/vfs_inode.c | 21 | ||||
-rw-r--r-- | fs/9p/vfs_inode_dotl.c | 2 | ||||
-rw-r--r-- | fs/9p/vfs_super.c | 2 |
4 files changed, 15 insertions, 14 deletions
diff --git a/fs/9p/v9fs_vfs.h b/fs/9p/v9fs_vfs.h index 410ffd6ceb5f..dc95a252523d 100644 --- a/fs/9p/v9fs_vfs.h +++ b/fs/9p/v9fs_vfs.h | |||
@@ -54,9 +54,9 @@ extern struct kmem_cache *v9fs_inode_cache; | |||
54 | 54 | ||
55 | struct inode *v9fs_alloc_inode(struct super_block *sb); | 55 | struct inode *v9fs_alloc_inode(struct super_block *sb); |
56 | void v9fs_destroy_inode(struct inode *inode); | 56 | void v9fs_destroy_inode(struct inode *inode); |
57 | struct inode *v9fs_get_inode(struct super_block *sb, int mode, dev_t); | 57 | struct inode *v9fs_get_inode(struct super_block *sb, umode_t mode, dev_t); |
58 | int v9fs_init_inode(struct v9fs_session_info *v9ses, | 58 | int v9fs_init_inode(struct v9fs_session_info *v9ses, |
59 | struct inode *inode, int mode, dev_t); | 59 | struct inode *inode, umode_t mode, dev_t); |
60 | void v9fs_evict_inode(struct inode *inode); | 60 | void v9fs_evict_inode(struct inode *inode); |
61 | ino_t v9fs_qid2ino(struct p9_qid *qid); | 61 | ino_t v9fs_qid2ino(struct p9_qid *qid); |
62 | void v9fs_stat2inode(struct p9_wstat *, struct inode *, struct super_block *); | 62 | void v9fs_stat2inode(struct p9_wstat *, struct inode *, struct super_block *); |
diff --git a/fs/9p/vfs_inode.c b/fs/9p/vfs_inode.c index cde57a850adb..e0f20de6aa2b 100644 --- a/fs/9p/vfs_inode.c +++ b/fs/9p/vfs_inode.c | |||
@@ -59,7 +59,7 @@ static const struct inode_operations v9fs_symlink_inode_operations; | |||
59 | * | 59 | * |
60 | */ | 60 | */ |
61 | 61 | ||
62 | static u32 unixmode2p9mode(struct v9fs_session_info *v9ses, int mode) | 62 | static u32 unixmode2p9mode(struct v9fs_session_info *v9ses, umode_t mode) |
63 | { | 63 | { |
64 | int res; | 64 | int res; |
65 | res = mode & 0777; | 65 | res = mode & 0777; |
@@ -94,11 +94,11 @@ static u32 unixmode2p9mode(struct v9fs_session_info *v9ses, int mode) | |||
94 | * @rdev: major number, minor number in case of device files. | 94 | * @rdev: major number, minor number in case of device files. |
95 | * | 95 | * |
96 | */ | 96 | */ |
97 | static int p9mode2unixmode(struct v9fs_session_info *v9ses, | 97 | static umode_t p9mode2unixmode(struct v9fs_session_info *v9ses, |
98 | struct p9_wstat *stat, dev_t *rdev) | 98 | struct p9_wstat *stat, dev_t *rdev) |
99 | { | 99 | { |
100 | int res; | 100 | int res; |
101 | int mode = stat->mode; | 101 | u32 mode = stat->mode; |
102 | 102 | ||
103 | res = mode & S_IALLUGO; | 103 | res = mode & S_IALLUGO; |
104 | *rdev = 0; | 104 | *rdev = 0; |
@@ -255,7 +255,7 @@ void v9fs_destroy_inode(struct inode *inode) | |||
255 | } | 255 | } |
256 | 256 | ||
257 | int v9fs_init_inode(struct v9fs_session_info *v9ses, | 257 | int v9fs_init_inode(struct v9fs_session_info *v9ses, |
258 | struct inode *inode, int mode, dev_t rdev) | 258 | struct inode *inode, umode_t mode, dev_t rdev) |
259 | { | 259 | { |
260 | int err = 0; | 260 | int err = 0; |
261 | 261 | ||
@@ -329,7 +329,7 @@ int v9fs_init_inode(struct v9fs_session_info *v9ses, | |||
329 | 329 | ||
330 | break; | 330 | break; |
331 | default: | 331 | default: |
332 | P9_DPRINTK(P9_DEBUG_ERROR, "BAD mode 0x%x S_IFMT 0x%x\n", | 332 | P9_DPRINTK(P9_DEBUG_ERROR, "BAD mode 0x%hx S_IFMT 0x%x\n", |
333 | mode, mode & S_IFMT); | 333 | mode, mode & S_IFMT); |
334 | err = -EINVAL; | 334 | err = -EINVAL; |
335 | goto error; | 335 | goto error; |
@@ -346,13 +346,13 @@ error: | |||
346 | * | 346 | * |
347 | */ | 347 | */ |
348 | 348 | ||
349 | struct inode *v9fs_get_inode(struct super_block *sb, int mode, dev_t rdev) | 349 | struct inode *v9fs_get_inode(struct super_block *sb, umode_t mode, dev_t rdev) |
350 | { | 350 | { |
351 | int err; | 351 | int err; |
352 | struct inode *inode; | 352 | struct inode *inode; |
353 | struct v9fs_session_info *v9ses = sb->s_fs_info; | 353 | struct v9fs_session_info *v9ses = sb->s_fs_info; |
354 | 354 | ||
355 | P9_DPRINTK(P9_DEBUG_VFS, "super block: %p mode: %o\n", sb, mode); | 355 | P9_DPRINTK(P9_DEBUG_VFS, "super block: %p mode: %ho\n", sb, mode); |
356 | 356 | ||
357 | inode = new_inode(sb); | 357 | inode = new_inode(sb); |
358 | if (!inode) { | 358 | if (!inode) { |
@@ -486,7 +486,8 @@ static struct inode *v9fs_qid_iget(struct super_block *sb, | |||
486 | int new) | 486 | int new) |
487 | { | 487 | { |
488 | dev_t rdev; | 488 | dev_t rdev; |
489 | int retval, umode; | 489 | int retval; |
490 | umode_t umode; | ||
490 | unsigned long i_ino; | 491 | unsigned long i_ino; |
491 | struct inode *inode; | 492 | struct inode *inode; |
492 | struct v9fs_session_info *v9ses = sb->s_fs_info; | 493 | struct v9fs_session_info *v9ses = sb->s_fs_info; |
@@ -1125,7 +1126,7 @@ void | |||
1125 | v9fs_stat2inode(struct p9_wstat *stat, struct inode *inode, | 1126 | v9fs_stat2inode(struct p9_wstat *stat, struct inode *inode, |
1126 | struct super_block *sb) | 1127 | struct super_block *sb) |
1127 | { | 1128 | { |
1128 | mode_t mode; | 1129 | umode_t mode; |
1129 | char ext[32]; | 1130 | char ext[32]; |
1130 | char tag_name[14]; | 1131 | char tag_name[14]; |
1131 | unsigned int i_nlink; | 1132 | unsigned int i_nlink; |
diff --git a/fs/9p/vfs_inode_dotl.c b/fs/9p/vfs_inode_dotl.c index 259f0cd248c8..8ef152ac6a16 100644 --- a/fs/9p/vfs_inode_dotl.c +++ b/fs/9p/vfs_inode_dotl.c | |||
@@ -594,7 +594,7 @@ int v9fs_vfs_setattr_dotl(struct dentry *dentry, struct iattr *iattr) | |||
594 | void | 594 | void |
595 | v9fs_stat2inode_dotl(struct p9_stat_dotl *stat, struct inode *inode) | 595 | v9fs_stat2inode_dotl(struct p9_stat_dotl *stat, struct inode *inode) |
596 | { | 596 | { |
597 | mode_t mode; | 597 | umode_t mode; |
598 | struct v9fs_inode *v9inode = V9FS_I(inode); | 598 | struct v9fs_inode *v9inode = V9FS_I(inode); |
599 | 599 | ||
600 | if ((stat->st_result_mask & P9_STATS_BASIC) == P9_STATS_BASIC) { | 600 | if ((stat->st_result_mask & P9_STATS_BASIC) == P9_STATS_BASIC) { |
diff --git a/fs/9p/vfs_super.c b/fs/9p/vfs_super.c index c70251d47ed1..f68ff65a32a5 100644 --- a/fs/9p/vfs_super.c +++ b/fs/9p/vfs_super.c | |||
@@ -117,7 +117,7 @@ static struct dentry *v9fs_mount(struct file_system_type *fs_type, int flags, | |||
117 | struct inode *inode = NULL; | 117 | struct inode *inode = NULL; |
118 | struct dentry *root = NULL; | 118 | struct dentry *root = NULL; |
119 | struct v9fs_session_info *v9ses = NULL; | 119 | struct v9fs_session_info *v9ses = NULL; |
120 | int mode = S_IRWXUGO | S_ISVTX; | 120 | umode_t mode = S_IRWXUGO | S_ISVTX; |
121 | struct p9_fid *fid; | 121 | struct p9_fid *fid; |
122 | int retval = 0; | 122 | int retval = 0; |
123 | 123 | ||