Commit 16f8eb3
Revert "page cache: fix page_cache_next/prev_miss off by one"
This reverts commit 9425c59
The reverted commit fixed up routines primarily used by readahead code
such that they could also be used by hugetlb. Unfortunately, this
caused a performance regression as pointed out by the Closes: tag.
The hugetlb code which uses page_cache_next_miss will be addressed in
a subsequent patch.
Link: https://lkml.kernel.org/r/20230621212403.174710-1-mike.kravetz@oracle.com
Fixes: 9425c59 ("page cache: fix page_cache_next/prev_miss off by one")
Signed-off-by: Mike Kravetz <mike.kravetz@oracle.com>
Reported-by: kernel test robot <oliver.sang@intel.com>
Closes: https://lore.kernel.org/oe-lkp/202306211346.1e9ff03e-oliver.sang@intel.com
Reviewed-by: Sidhartha Kumar <sidhartha.kumar@oracle.com>
Cc: Ackerley Tng <ackerleytng@google.com>
Cc: Erdem Aktas <erdemaktas@google.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Muchun Song <songmuchun@bytedance.com>
Cc: Vishal Annapurve <vannapurve@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>1 parent 1bc545b commit 16f8eb3
1 file changed
Lines changed: 10 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1728 | 1728 | | |
1729 | 1729 | | |
1730 | 1730 | | |
1731 | | - | |
1732 | | - | |
1733 | | - | |
| 1731 | + | |
1734 | 1732 | | |
1735 | 1733 | | |
1736 | 1734 | | |
| |||
1740 | 1738 | | |
1741 | 1739 | | |
1742 | 1740 | | |
1743 | | - | |
1744 | | - | |
1745 | | - | |
| 1741 | + | |
| 1742 | + | |
| 1743 | + | |
1746 | 1744 | | |
1747 | 1745 | | |
1748 | | - | |
1749 | | - | |
| 1746 | + | |
1750 | 1747 | | |
1751 | 1748 | | |
1752 | 1749 | | |
| |||
1767 | 1764 | | |
1768 | 1765 | | |
1769 | 1766 | | |
1770 | | - | |
1771 | | - | |
1772 | | - | |
| 1767 | + | |
1773 | 1768 | | |
1774 | 1769 | | |
1775 | 1770 | | |
| |||
1779 | 1774 | | |
1780 | 1775 | | |
1781 | 1776 | | |
1782 | | - | |
1783 | | - | |
1784 | | - | |
| 1777 | + | |
| 1778 | + | |
| 1779 | + | |
1785 | 1780 | | |
1786 | 1781 | | |
1787 | | - | |
1788 | | - | |
| 1782 | + | |
1789 | 1783 | | |
1790 | 1784 | | |
1791 | 1785 | | |
| |||
0 commit comments