Yin Fengwei
c8be038067
filemap: add filemap_map_order0_folio() to handle order0 folio
...
Kernel test robot reported regressions for several benchmarks [1].
The regression are related with commit:
de74976eb65151a2f568e477fc2e0032df5b22b4 ("filemap: add filemap_map_folio_range()")
It turned out that function filemap_map_folio_range() brings these
regressions when handle folio with order0.
Add filemap_map_order0_folio() to handle order0 folio. The benefit
come from two perspectives:
- the code size is smaller (around 126 bytes)
- no loop
Testing showed the regressions reported by 0day [1] all are fixed:
commit 9f1f5b60e76d44fa: parent commit of de74976eb65151a2
commit fbdf9263a3d7fdbd: latest mm-unstable commit
commit 7fbfe2003f84686d: this fixing patch
9f1f5b60e76d44fa fbdf9263a3d7fdbd 7fbfe2003f84686d
---------------- --------------------------- ---------------------------
3843810 -21.4% 3020268 +4.6% 4018708 stress-ng.bad-altstack.ops
64061 -21.4% 50336 +4.6% 66977 stress-ng.bad-altstack.ops_per_sec
1709026 -14.4% 1462102 +2.4% 1750757 stress-ng.fork.ops
28483 -14.4% 24368 +2.4% 29179 stress-ng.fork.ops_per_sec
3685088 -53.6% 1710976 +0.5% 3702454 stress-ng.zombie.ops
56732 -65.3% 19667 +0.7% 57107 stress-ng.zombie.ops_per_sec
61874 -12.1% 54416 +0.4% 62136 vm-scalability.median
13527663 -11.7% 11942117 -0.1% 13513946 vm-scalability.throughput
4.066e+09 -11.7% 3.59e+09 -0.1% 4.061e+09 vm-scalability.workload
[1]:
https://lore.kernel.org/oe-lkp/72e017b9-deb6-44fa-91d6-716ee2c39cbc@intel.com/T/#m7d2bba30f75a9cee8eab07e5809abd9b3b206c84
Link: https://lkml.kernel.org/r/20230914134741.1937654-1-fengwei.yin@intel.com
Fixes: de74976eb65151a2f568e477fc2e0032df5b22b4 ("filemap: add filemap_map_folio_range()")
Signed-off-by: Yin Fengwei <fengwei.yin@intel.com>
Reported-by: kernel test robot <oliver.sang@intel.com>
Closes: https://lore.kernel.org/oe-lkp/202309111556.b2aa3d7a-oliver.sang@intel.com
Cc: Feng Tang <feng.tang@intel.com>
Cc: Huang Ying <ying.huang@intel.com>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2023-09-19 13:21:34 -07:00
..
2023-08-21 14:26:20 -07:00
2023-09-06 22:54:16 +08:00
2023-09-08 12:16:52 -07:00
2023-08-21 13:37:29 -07:00
2023-08-21 13:37:48 -07:00
2023-03-28 16:20:06 -07:00
2023-08-29 20:32:10 -07:00
2023-08-21 14:26:20 -07:00
2023-06-09 16:25:23 -07:00
2023-08-31 12:20:12 -07:00
2023-06-09 16:25:31 -07:00
2023-04-05 19:42:38 -07:00
2023-06-09 16:25:17 -07:00
2023-06-09 16:25:56 -07:00
2023-06-23 16:59:31 -07:00
2023-06-09 16:25:23 -07:00
2023-09-19 13:21:34 -07:00
2023-07-24 18:04:30 -04:00
2023-06-23 16:58:19 -07:00
2023-08-31 12:20:12 -07:00
2023-06-19 16:19:25 -07:00
2023-08-21 13:07:20 -07:00
2023-08-31 12:20:12 -07:00
2023-02-13 15:54:27 -08:00
2023-08-18 10:12:14 -07:00
2023-08-24 16:20:31 -07:00
2023-08-21 13:37:46 -07:00
2023-08-31 12:20:12 -07:00
2023-08-18 10:12:36 -07:00
2023-08-29 14:25:26 -07:00
2023-05-29 16:14:28 +01:00
2023-08-29 14:25:26 -07:00
2023-09-02 15:17:34 -07:00
2023-09-05 11:11:52 -07:00
2023-04-12 17:36:23 -07:00
2023-08-24 16:20:16 -07:00
2023-08-29 14:25:26 -07:00
2023-08-24 16:20:30 -07:00
2023-08-21 13:37:43 -07:00
2023-09-19 13:21:34 -07:00
2023-09-05 11:11:52 -07:00
2023-08-21 13:37:49 -07:00
2023-09-05 12:22:39 -07:00
2023-08-18 10:12:38 -07:00
2023-08-31 12:20:12 -07:00
2023-08-21 14:28:43 -07:00
2023-02-09 16:51:46 -08:00
2023-08-21 13:37:47 -07:00
2023-08-31 12:20:12 -07:00
2023-08-31 12:20:12 -07:00
2023-08-21 13:07:20 -07:00
2023-08-21 14:26:20 -07:00
2023-08-21 13:37:47 -07:00
2023-08-31 12:20:12 -07:00
2023-08-24 16:20:30 -07:00
2023-08-18 10:12:41 -07:00
2023-08-31 12:20:12 -07:00
2023-09-16 15:23:31 -07:00
2023-08-31 12:20:12 -07:00
2023-08-21 13:37:44 -07:00
2023-09-19 13:21:32 -07:00
2023-08-18 10:12:31 -07:00
2023-01-18 17:12:52 -08:00
2023-08-21 13:37:27 -07:00
2023-08-18 10:12:39 -07:00
2023-08-21 13:37:27 -07:00
2023-08-21 13:37:30 -07:00
2023-04-05 19:42:46 -07:00
2023-08-24 16:20:18 -07:00
2023-08-18 10:12:13 -07:00
2023-08-21 14:52:16 +02:00
2023-09-02 08:39:21 -07:00
2023-06-19 16:19:29 -07:00
2023-08-25 08:04:59 -07:00
2023-08-18 10:12:25 -07:00
2023-06-09 16:25:25 -07:00
2023-06-19 16:19:24 -07:00
2023-07-24 18:04:30 -04:00
2023-08-24 16:20:28 -07:00
2023-08-21 13:38:02 -07:00
2023-08-09 09:15:40 +02:00
2023-08-29 14:25:26 -07:00
2023-08-21 13:38:01 -07:00
2023-06-19 13:19:34 -07:00
2023-04-05 19:42:46 -07:00
2023-08-29 20:32:10 -07:00
2023-07-18 10:07:47 +02:00
2023-07-18 10:07:47 +02:00
2023-07-14 09:57:21 +02:00
2023-08-18 10:12:53 -07:00
2023-08-18 10:12:14 -07:00
2023-08-24 16:20:28 -07:00
2023-06-23 16:59:30 -07:00
2023-08-24 16:20:16 -07:00
2023-08-24 16:20:28 -07:00
2023-08-29 14:25:26 -07:00
2023-04-12 17:36:23 -07:00
2023-08-31 12:20:12 -07:00
2023-09-05 10:13:45 -07:00
2023-09-05 10:13:45 -07:00
2023-08-16 12:21:32 +01:00
2023-08-24 16:20:28 -07:00
2023-08-21 13:37:30 -07:00
2023-08-24 16:20:18 -07:00
2023-08-21 13:37:51 -07:00
2023-06-19 16:19:27 -07:00
2023-06-19 16:19:27 -07:00
2023-08-21 14:26:20 -07:00
2023-08-24 16:20:28 -07:00