Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 180173
b: refs/heads/master
c: 931e80e
h: refs/heads/master
i:
  180171: eefddb5
v: v3
  • Loading branch information
anfei zhou authored and Linus Torvalds committed Feb 3, 2010
1 parent b66d0d1 commit 0cbe7d4
Show file tree
Hide file tree
Showing 3 changed files with 7 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: bc173f7092c76a7967f135c2b3a54052ad99733b
refs/heads/master: 931e80e4b3263db75c8e34f078d22f11bbabd3a3
3 changes: 3 additions & 0 deletions trunk/fs/fuse/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -828,6 +828,9 @@ static ssize_t fuse_fill_write_pages(struct fuse_req *req,
if (!page)
break;

if (mapping_writably_mapped(mapping))
flush_dcache_page(page);

pagefault_disable();
tmp = iov_iter_copy_from_user_atomic(page, ii, offset, bytes);
pagefault_enable();
Expand Down
3 changes: 3 additions & 0 deletions trunk/mm/filemap.c
Original file line number Diff line number Diff line change
Expand Up @@ -2232,6 +2232,9 @@ static ssize_t generic_perform_write(struct file *file,
if (unlikely(status))
break;

if (mapping_writably_mapped(mapping))
flush_dcache_page(page);

pagefault_disable();
copied = iov_iter_copy_from_user_atomic(page, i, offset, bytes);
pagefault_enable();
Expand Down

0 comments on commit 0cbe7d4

Please sign in to comment.