diff options
Diffstat (limited to 'fs/attr.c')
-rw-r--r-- | fs/attr.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -166,7 +166,7 @@ EXPORT_SYMBOL(setattr_copy); | |||
166 | int notify_change(struct dentry * dentry, struct iattr * attr) | 166 | int notify_change(struct dentry * dentry, struct iattr * attr) |
167 | { | 167 | { |
168 | struct inode *inode = dentry->d_inode; | 168 | struct inode *inode = dentry->d_inode; |
169 | mode_t mode = inode->i_mode; | 169 | umode_t mode = inode->i_mode; |
170 | int error; | 170 | int error; |
171 | struct timespec now; | 171 | struct timespec now; |
172 | unsigned int ia_valid = attr->ia_valid; | 172 | unsigned int ia_valid = attr->ia_valid; |
@@ -177,7 +177,7 @@ int notify_change(struct dentry * dentry, struct iattr * attr) | |||
177 | } | 177 | } |
178 | 178 | ||
179 | if ((ia_valid & ATTR_MODE)) { | 179 | if ((ia_valid & ATTR_MODE)) { |
180 | mode_t amode = attr->ia_mode; | 180 | umode_t amode = attr->ia_mode; |
181 | /* Flag setting protected by i_mutex */ | 181 | /* Flag setting protected by i_mutex */ |
182 | if (is_sxid(amode)) | 182 | if (is_sxid(amode)) |
183 | inode->i_flags &= ~S_NOSEC; | 183 | inode->i_flags &= ~S_NOSEC; |