diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2011-07-25 00:05:26 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-01-03 22:54:57 -0500 |
commit | 439475140bed762c04567c325d48409862341ae4 (patch) | |
tree | a4023e4536d39e8e5c4b8abd7747aa43f0338ef2 /fs/configfs | |
parent | fbd48a69a0b576dd8cba01b2b4fc24fad76f1b68 (diff) |
configfs: convert to umode_t
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/configfs')
-rw-r--r-- | fs/configfs/configfs_internal.h | 4 | ||||
-rw-r--r-- | fs/configfs/inode.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/fs/configfs/configfs_internal.h b/fs/configfs/configfs_internal.h index 82bda8fdfc1c..ede857d20a04 100644 --- a/fs/configfs/configfs_internal.h +++ b/fs/configfs/configfs_internal.h | |||
@@ -63,8 +63,8 @@ extern struct kmem_cache *configfs_dir_cachep; | |||
63 | 63 | ||
64 | extern int configfs_is_root(struct config_item *item); | 64 | extern int configfs_is_root(struct config_item *item); |
65 | 65 | ||
66 | extern struct inode * configfs_new_inode(mode_t mode, struct configfs_dirent *); | 66 | extern struct inode * configfs_new_inode(umode_t mode, struct configfs_dirent *); |
67 | extern int configfs_create(struct dentry *, int mode, int (*init)(struct inode *)); | 67 | extern int configfs_create(struct dentry *, umode_t mode, int (*init)(struct inode *)); |
68 | extern int configfs_inode_init(void); | 68 | extern int configfs_inode_init(void); |
69 | extern void configfs_inode_exit(void); | 69 | extern void configfs_inode_exit(void); |
70 | 70 | ||
diff --git a/fs/configfs/inode.c b/fs/configfs/inode.c index 9d8715c45f25..3ee36d418863 100644 --- a/fs/configfs/inode.c +++ b/fs/configfs/inode.c | |||
@@ -116,7 +116,7 @@ int configfs_setattr(struct dentry * dentry, struct iattr * iattr) | |||
116 | return error; | 116 | return error; |
117 | } | 117 | } |
118 | 118 | ||
119 | static inline void set_default_inode_attr(struct inode * inode, mode_t mode) | 119 | static inline void set_default_inode_attr(struct inode * inode, umode_t mode) |
120 | { | 120 | { |
121 | inode->i_mode = mode; | 121 | inode->i_mode = mode; |
122 | inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; | 122 | inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; |
@@ -132,7 +132,7 @@ static inline void set_inode_attr(struct inode * inode, struct iattr * iattr) | |||
132 | inode->i_ctime = iattr->ia_ctime; | 132 | inode->i_ctime = iattr->ia_ctime; |
133 | } | 133 | } |
134 | 134 | ||
135 | struct inode * configfs_new_inode(mode_t mode, struct configfs_dirent * sd) | 135 | struct inode *configfs_new_inode(umode_t mode, struct configfs_dirent * sd) |
136 | { | 136 | { |
137 | struct inode * inode = new_inode(configfs_sb); | 137 | struct inode * inode = new_inode(configfs_sb); |
138 | if (inode) { | 138 | if (inode) { |
@@ -185,7 +185,7 @@ static void configfs_set_inode_lock_class(struct configfs_dirent *sd, | |||
185 | 185 | ||
186 | #endif /* CONFIG_LOCKDEP */ | 186 | #endif /* CONFIG_LOCKDEP */ |
187 | 187 | ||
188 | int configfs_create(struct dentry * dentry, int mode, int (*init)(struct inode *)) | 188 | int configfs_create(struct dentry * dentry, umode_t mode, int (*init)(struct inode *)) |
189 | { | 189 | { |
190 | int error = 0; | 190 | int error = 0; |
191 | struct inode * inode = NULL; | 191 | struct inode * inode = NULL; |