diff options
Diffstat (limited to 'mm/filemap.c')
-rw-r--r-- | mm/filemap.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/mm/filemap.c b/mm/filemap.c index 9cbf4fea4a59..7b48b2ad00e7 100644 --- a/mm/filemap.c +++ b/mm/filemap.c | |||
@@ -750,6 +750,7 @@ unsigned find_get_pages_contig(struct address_space *mapping, pgoff_t index, | |||
750 | read_unlock_irq(&mapping->tree_lock); | 750 | read_unlock_irq(&mapping->tree_lock); |
751 | return i; | 751 | return i; |
752 | } | 752 | } |
753 | EXPORT_SYMBOL(find_get_pages_contig); | ||
753 | 754 | ||
754 | /** | 755 | /** |
755 | * find_get_pages_tag - find and return pages that match @tag | 756 | * find_get_pages_tag - find and return pages that match @tag |
@@ -778,6 +779,7 @@ unsigned find_get_pages_tag(struct address_space *mapping, pgoff_t *index, | |||
778 | read_unlock_irq(&mapping->tree_lock); | 779 | read_unlock_irq(&mapping->tree_lock); |
779 | return ret; | 780 | return ret; |
780 | } | 781 | } |
782 | EXPORT_SYMBOL(find_get_pages_tag); | ||
781 | 783 | ||
782 | /** | 784 | /** |
783 | * grab_cache_page_nowait - returns locked page at given index in given cache | 785 | * grab_cache_page_nowait - returns locked page at given index in given cache |
@@ -1782,7 +1784,7 @@ struct page *read_cache_page_async(struct address_space *mapping, | |||
1782 | retry: | 1784 | retry: |
1783 | page = __read_cache_page(mapping, index, filler, data); | 1785 | page = __read_cache_page(mapping, index, filler, data); |
1784 | if (IS_ERR(page)) | 1786 | if (IS_ERR(page)) |
1785 | goto out; | 1787 | return page; |
1786 | mark_page_accessed(page); | 1788 | mark_page_accessed(page); |
1787 | if (PageUptodate(page)) | 1789 | if (PageUptodate(page)) |
1788 | goto out; | 1790 | goto out; |
@@ -1800,9 +1802,9 @@ retry: | |||
1800 | err = filler(data, page); | 1802 | err = filler(data, page); |
1801 | if (err < 0) { | 1803 | if (err < 0) { |
1802 | page_cache_release(page); | 1804 | page_cache_release(page); |
1803 | page = ERR_PTR(err); | 1805 | return ERR_PTR(err); |
1804 | } | 1806 | } |
1805 | out: | 1807 | out: |
1806 | mark_page_accessed(page); | 1808 | mark_page_accessed(page); |
1807 | return page; | 1809 | return page; |
1808 | } | 1810 | } |