diff options
Diffstat (limited to 'mm')
-rw-r--r-- | mm/filemap.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/mm/filemap.c b/mm/filemap.c index 439b2bea8e34..93595c327bbd 100644 --- a/mm/filemap.c +++ b/mm/filemap.c | |||
@@ -1379,8 +1379,13 @@ retry_find: | |||
1379 | * Ok, found a page in the page cache, now we need to check | 1379 | * Ok, found a page in the page cache, now we need to check |
1380 | * that it's up-to-date. | 1380 | * that it's up-to-date. |
1381 | */ | 1381 | */ |
1382 | if (!PageUptodate(page)) | 1382 | if (!PageUptodate(page)) { |
1383 | if (nonblock) { | ||
1384 | page_cache_release(page); | ||
1385 | return NULL; | ||
1386 | } | ||
1383 | goto page_not_uptodate; | 1387 | goto page_not_uptodate; |
1388 | } | ||
1384 | 1389 | ||
1385 | success: | 1390 | success: |
1386 | /* | 1391 | /* |