Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 217475
b: refs/heads/master
c: 0116651
h: refs/heads/master
i:
  217473: 48e0b34
  217471: 094a9c4
v: v3
  • Loading branch information
Namhyung Kim authored and Linus Torvalds committed Oct 26, 2010
1 parent eb31f1b commit 1d61bf7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: 68da336a14e16c2de95e987f3200995b707d7038
refs/heads/master: 0116651c85e671a693dd2f56e95dd651f746c973
8 changes: 4 additions & 4 deletions trunk/mm/filemap.c
Original file line number Diff line number Diff line change
Expand Up @@ -2193,12 +2193,12 @@ generic_file_direct_write(struct kiocb *iocb, const struct iovec *iov,
}

if (written > 0) {
loff_t end = pos + written;
if (end > i_size_read(inode) && !S_ISBLK(inode->i_mode)) {
i_size_write(inode, end);
pos += written;
if (pos > i_size_read(inode) && !S_ISBLK(inode->i_mode)) {
i_size_write(inode, pos);
mark_inode_dirty(inode);
}
*ppos = end;
*ppos = pos;
}
out:
return written;
Expand Down

0 comments on commit 1d61bf7

Please sign in to comment.