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
Merge branch 'vhost-net-next' of git://git.kernel.org/pub/scm/linux/kernel/git/mst...
[pandora-kernel.git]
/
fs
/
9p
/
vfs_inode_dotl.c
diff --git
a/fs/9p/vfs_inode_dotl.c
b/fs/9p/vfs_inode_dotl.c
index
bcd0ee2
..
67c138e
100644
(file)
--- a/
fs/9p/vfs_inode_dotl.c
+++ b/
fs/9p/vfs_inode_dotl.c
@@
-459,6
+459,10
@@
int v9fs_vfs_setattr_dotl(struct dentry *dentry, struct iattr *iattr)
if (retval)
return retval;
}
+ /* Write all dirty data */
+ if (S_ISREG(dentry->d_inode->i_mode))
+ filemap_write_and_wait(dentry->d_inode->i_mapping);
+
retval = p9_client_setattr(fid, &p9attr);
if (retval < 0)
return retval;