aboutsummaryrefslogtreecommitdiffstats
path: root/fs/attr.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/attr.c')
-rw-r--r--fs/attr.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/attr.c b/fs/attr.c
index 584620e5dee5..0da90951d277 100644
--- a/fs/attr.c
+++ b/fs/attr.c
@@ -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 */