diff options
Diffstat (limited to 'fs/attr.c')
-rw-r--r-- | fs/attr.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -176,6 +176,11 @@ int notify_change(struct dentry * dentry, struct iattr * attr) | |||
176 | return -EPERM; | 176 | return -EPERM; |
177 | } | 177 | } |
178 | 178 | ||
179 | if ((ia_valid & ATTR_SIZE) && IS_I_VERSION(inode)) { | ||
180 | if (attr->ia_size != inode->i_size) | ||
181 | inode_inc_iversion(inode); | ||
182 | } | ||
183 | |||
179 | if ((ia_valid & ATTR_MODE)) { | 184 | if ((ia_valid & ATTR_MODE)) { |
180 | umode_t amode = attr->ia_mode; | 185 | umode_t amode = attr->ia_mode; |
181 | /* Flag setting protected by i_mutex */ | 186 | /* Flag setting protected by i_mutex */ |