Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 252731
b: refs/heads/master
c: 3d08bcc
h: refs/heads/master
i:
  252729: 3f48974
  252727: 5520874
v: v3
  • Loading branch information
Darrick J. Wong authored and Al Viro committed May 28, 2011
1 parent 0b21026 commit f25320b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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: 98702467f829177b3993f17da9fe5c202d160e5e
refs/heads/master: 3d08bcc887a1c8d12be8d81f747ffa2e8a44b67b
4 changes: 3 additions & 1 deletion trunk/mm/filemap.c
Original file line number Diff line number Diff line change
Expand Up @@ -2327,7 +2327,7 @@ struct page *grab_cache_page_write_begin(struct address_space *mapping,
repeat:
page = find_lock_page(mapping, index);
if (page)
return page;
goto found;

page = __page_cache_alloc(mapping_gfp_mask(mapping) & ~gfp_notmask);
if (!page)
Expand All @@ -2340,6 +2340,8 @@ struct page *grab_cache_page_write_begin(struct address_space *mapping,
goto repeat;
return NULL;
}
found:
wait_on_page_writeback(page);
return page;
}
EXPORT_SYMBOL(grab_cache_page_write_begin);
Expand Down

0 comments on commit f25320b

Please sign in to comment.