Release page reference during page fault retry

This slipped by when unifying the filemap and swap versions of
lock_page_or_retry()...

Signed-off-by: Michel Lespinasse <walken@google.com>
Acked-by: Rik van Riel <riel@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Michel Lespinasse and committed by
Linus Torvalds
d88c0922 eb8abb92

+3 -1
+3 -1
mm/filemap.c
··· 1563 1563 goto no_cached_page; 1564 1564 } 1565 1565 1566 - if (!lock_page_or_retry(page, vma->vm_mm, vmf->flags)) 1566 + if (!lock_page_or_retry(page, vma->vm_mm, vmf->flags)) { 1567 + page_cache_release(page); 1567 1568 return ret | VM_FAULT_RETRY; 1569 + } 1568 1570 1569 1571 /* Did it get truncated? */ 1570 1572 if (unlikely(page->mapping != mapping)) {