Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 25313
b: refs/heads/master
c: ad8d6f0
h: refs/heads/master
i:
  25311: 8a1bbad
v: v3
  • Loading branch information
Jens Axboe committed Apr 2, 2006
1 parent ea92c1d commit 7a12e63
Show file tree
Hide file tree
Showing 2 changed files with 10 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: 059a8f3734a66cb2c41731083b0cbf836721485b
refs/heads/master: ad8d6f0a783ffa2ff9b0cf09910b889715772201
9 changes: 9 additions & 0 deletions trunk/fs/splice.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,15 @@ static int page_cache_pipe_buf_steal(struct pipe_inode_info *info,
WARN_ON(!PageLocked(page));
WARN_ON(!PageUptodate(page));

/*
* At least for ext2 with nobh option, we need to wait on writeback
* completing on this page, since we'll remove it from the pagecache.
* Otherwise truncate wont wait on the page, allowing the disk
* blocks to be reused by someone else before we actually wrote our
* data to them. fs corruption ensues.
*/
wait_on_page_writeback(page);

if (PagePrivate(page))
try_to_release_page(page, mapping_gfp_mask(mapping));

Expand Down

0 comments on commit 7a12e63

Please sign in to comment.