Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 310023
b: refs/heads/master
c: 799243a
h: refs/heads/master
i:
  310021: b173426
  310019: 2db27c0
  310015: 782f642
v: v3
  • Loading branch information
Dmitry Kasatkin authored and Al Viro committed May 31, 2012
1 parent 85d9c36 commit 16413af
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a0a9b0433767713342f9cc70f563483c38e26f30
refs/heads/master: 799243a389bde0de10fa21ca1ca453d2fe538b85
5 changes: 5 additions & 0 deletions trunk/fs/attr.c
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,11 @@ int notify_change(struct dentry * dentry, struct iattr * attr)
return -EPERM;
}

if ((ia_valid & ATTR_SIZE) && IS_I_VERSION(inode)) {
if (attr->ia_size != inode->i_size)
inode_inc_iversion(inode);
}

if ((ia_valid & ATTR_MODE)) {
umode_t amode = attr->ia_mode;
/* Flag setting protected by i_mutex */
Expand Down

0 comments on commit 16413af

Please sign in to comment.