diff options
Diffstat (limited to 'mm/readahead.c')
-rw-r--r-- | mm/readahead.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mm/readahead.c b/mm/readahead.c index 5b3c9b7d70fa..205a4a431516 100644 --- a/mm/readahead.c +++ b/mm/readahead.c | |||
@@ -448,6 +448,12 @@ page_cache_readahead_ondemand(struct address_space *mapping, | |||
448 | return 0; | 448 | return 0; |
449 | 449 | ||
450 | if (page) { | 450 | if (page) { |
451 | /* | ||
452 | * It can be PG_reclaim. | ||
453 | */ | ||
454 | if (PageWriteback(page)) | ||
455 | return 0; | ||
456 | |||
451 | ClearPageReadahead(page); | 457 | ClearPageReadahead(page); |
452 | 458 | ||
453 | /* | 459 | /* |