diff options
Diffstat (limited to 'fs/ramfs/inode.c')
-rw-r--r-- | fs/ramfs/inode.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/ramfs/inode.c b/fs/ramfs/inode.c index 462ceb38fec6..aec766abe3af 100644 --- a/fs/ramfs/inode.c +++ b/fs/ramfs/inode.c | |||
@@ -52,7 +52,7 @@ static struct backing_dev_info ramfs_backing_dev_info = { | |||
52 | }; | 52 | }; |
53 | 53 | ||
54 | struct inode *ramfs_get_inode(struct super_block *sb, | 54 | struct inode *ramfs_get_inode(struct super_block *sb, |
55 | const struct inode *dir, int mode, dev_t dev) | 55 | const struct inode *dir, umode_t mode, dev_t dev) |
56 | { | 56 | { |
57 | struct inode * inode = new_inode(sb); | 57 | struct inode * inode = new_inode(sb); |
58 | 58 | ||
@@ -92,7 +92,7 @@ struct inode *ramfs_get_inode(struct super_block *sb, | |||
92 | */ | 92 | */ |
93 | /* SMP-safe */ | 93 | /* SMP-safe */ |
94 | static int | 94 | static int |
95 | ramfs_mknod(struct inode *dir, struct dentry *dentry, int mode, dev_t dev) | 95 | ramfs_mknod(struct inode *dir, struct dentry *dentry, umode_t mode, dev_t dev) |
96 | { | 96 | { |
97 | struct inode * inode = ramfs_get_inode(dir->i_sb, dir, mode, dev); | 97 | struct inode * inode = ramfs_get_inode(dir->i_sb, dir, mode, dev); |
98 | int error = -ENOSPC; | 98 | int error = -ENOSPC; |
@@ -106,7 +106,7 @@ ramfs_mknod(struct inode *dir, struct dentry *dentry, int mode, dev_t dev) | |||
106 | return error; | 106 | return error; |
107 | } | 107 | } |
108 | 108 | ||
109 | static int ramfs_mkdir(struct inode * dir, struct dentry * dentry, int mode) | 109 | static int ramfs_mkdir(struct inode * dir, struct dentry * dentry, umode_t mode) |
110 | { | 110 | { |
111 | int retval = ramfs_mknod(dir, dentry, mode | S_IFDIR, 0); | 111 | int retval = ramfs_mknod(dir, dentry, mode | S_IFDIR, 0); |
112 | if (!retval) | 112 | if (!retval) |
@@ -114,7 +114,7 @@ static int ramfs_mkdir(struct inode * dir, struct dentry * dentry, int mode) | |||
114 | return retval; | 114 | return retval; |
115 | } | 115 | } |
116 | 116 | ||
117 | static int ramfs_create(struct inode *dir, struct dentry *dentry, int mode, struct nameidata *nd) | 117 | static int ramfs_create(struct inode *dir, struct dentry *dentry, umode_t mode, struct nameidata *nd) |
118 | { | 118 | { |
119 | return ramfs_mknod(dir, dentry, mode | S_IFREG, 0); | 119 | return ramfs_mknod(dir, dentry, mode | S_IFREG, 0); |
120 | } | 120 | } |