Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 71062
b: refs/heads/master
c: 50fd801
h: refs/heads/master
v: v3
  • Loading branch information
Eric Van Hensbergen committed Oct 17, 2007
1 parent 0c5d28a commit d4dcc19
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ba17674fe02909fef049fd4b620a2805bdb8c693
refs/heads/master: 50fd8010673b770f6489c9ee96680c204aefa84a
6 changes: 4 additions & 2 deletions trunk/fs/9p/vfs_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,15 +162,17 @@ v9fs_file_write(struct file *filp, const char __user * data,

fid = filp->private_data;
ret = p9_client_uwrite(fid, data, *offset, count);
if (ret > 0)
if (ret > 0) {
invalidate_inode_pages2_range(inode->i_mapping, *offset,
*offset+ret);
*offset += ret;
}

if (*offset > inode->i_size) {
inode->i_size = *offset;
inode->i_blocks = (inode->i_size + 512 - 1) >> 9;
}

invalidate_inode_pages2(inode->i_mapping);
return ret;
}

Expand Down

0 comments on commit d4dcc19

Please sign in to comment.