Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 235049
b: refs/heads/master
c: 3dc5436
h: refs/heads/master
i:
  235047: 8be6d91
v: v3
  • Loading branch information
Aneesh Kumar K.V authored and Eric Van Hensbergen committed Mar 15, 2011
1 parent 05d9c98 commit 710b49a
Show file tree
Hide file tree
Showing 3 changed files with 9 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: f10fc50f1adaf40fdd5da6dd154ecb464b468e2f
refs/heads/master: 3dc5436aa5719be029bbc2bef0e5cb0312e4ff88
4 changes: 4 additions & 0 deletions trunk/fs/9p/vfs_inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -999,6 +999,10 @@ static int v9fs_vfs_setattr(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_wstat(fid, &wstat);
if (retval < 0)
return retval;
Expand Down
4 changes: 4 additions & 0 deletions trunk/fs/9p/vfs_inode_dotl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 710b49a

Please sign in to comment.