git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
sfc: Fix maximum number of TSO segments and minimum TX queue size
[pandora-kernel.git]
/
fs
/
attr.c
diff --git
a/fs/attr.c
b/fs/attr.c
index
7ee7ba4
..
b8f55c4
100644
(file)
--- a/
fs/attr.c
+++ b/
fs/attr.c
@@
-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)) {
mode_t amode = attr->ia_mode;
/* Flag setting protected by i_mutex */