diff options
Diffstat (limited to 'mm/filemap.c')
-rw-r--r-- | mm/filemap.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mm/filemap.c b/mm/filemap.c index d5af1cab4268..afcdc72b5e90 100644 --- a/mm/filemap.c +++ b/mm/filemap.c | |||
@@ -599,8 +599,8 @@ void fastcall __lock_page_nosync(struct page *page) | |||
599 | * @mapping: the address_space to search | 599 | * @mapping: the address_space to search |
600 | * @offset: the page index | 600 | * @offset: the page index |
601 | * | 601 | * |
602 | * A rather lightweight function, finding and getting a reference to a | 602 | * Is there a pagecache struct page at the given (mapping, offset) tuple? |
603 | * hashed page atomically. | 603 | * If yes, increment its refcount and return it; if no, return NULL. |
604 | */ | 604 | */ |
605 | struct page * find_get_page(struct address_space *mapping, unsigned long offset) | 605 | struct page * find_get_page(struct address_space *mapping, unsigned long offset) |
606 | { | 606 | { |
@@ -987,7 +987,7 @@ page_not_up_to_date: | |||
987 | /* Get exclusive access to the page ... */ | 987 | /* Get exclusive access to the page ... */ |
988 | lock_page(page); | 988 | lock_page(page); |
989 | 989 | ||
990 | /* Did it get unhashed before we got the lock? */ | 990 | /* Did it get truncated before we got the lock? */ |
991 | if (!page->mapping) { | 991 | if (!page->mapping) { |
992 | unlock_page(page); | 992 | unlock_page(page); |
993 | page_cache_release(page); | 993 | page_cache_release(page); |
@@ -1627,7 +1627,7 @@ no_cached_page: | |||
1627 | page_not_uptodate: | 1627 | page_not_uptodate: |
1628 | lock_page(page); | 1628 | lock_page(page); |
1629 | 1629 | ||
1630 | /* Did it get unhashed while we waited for it? */ | 1630 | /* Did it get truncated while we waited for it? */ |
1631 | if (!page->mapping) { | 1631 | if (!page->mapping) { |
1632 | unlock_page(page); | 1632 | unlock_page(page); |
1633 | goto err; | 1633 | goto err; |