Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 221721
b: refs/heads/master
c: 8d056cb
h: refs/heads/master
i:
  221719: 51a2fc3
v: v3
  • Loading branch information
Dave Hansen authored and Linus Torvalds committed Nov 12, 2010
1 parent 8206d03 commit 4d45d87
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 834b40380e93e36f1c9b48ec1d280cebe3d7bd8c
refs/heads/master: 8d056cb965b8fb7c53c564abf28b1962d1061cd3
3 changes: 3 additions & 0 deletions trunk/mm/filemap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1029,6 +1029,9 @@ static void do_generic_file_read(struct file *filp, loff_t *ppos,
goto page_not_up_to_date;
if (!trylock_page(page))
goto page_not_up_to_date;
/* Did it get truncated before we got the lock? */
if (!page->mapping)
goto page_not_up_to_date_locked;
if (!mapping->a_ops->is_partially_uptodate(page,
desc, offset))
goto page_not_up_to_date_locked;
Expand Down

0 comments on commit 4d45d87

Please sign in to comment.