Alexander Duyck
8644772637
mm: Use fixed constant in page_frag_alloc instead of size + 1
...
This patch replaces the size + 1 value introduced with the recent fix for 1
byte allocs with a constant value.
The idea here is to reduce code overhead as the previous logic would have
to read size into a register, then increment it, and write it back to
whatever field was being used. By using a constant we can avoid those
memory reads and arithmetic operations in favor of just encoding the
maximum value into the operation itself.
Fixes: 2c2ade81741c ("mm: page_alloc: fix ref bias in page_frag_alloc() for 1-byte allocs")
Signed-off-by: Alexander Duyck <alexander.h.duyck@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-02-17 15:48:43 -08:00
..
2019-02-01 15:46:23 -08:00
2019-01-22 14:39:38 -07:00
2017-11-14 23:57:38 +02:00
2018-06-15 07:55:25 +09:00
2018-08-17 16:20:32 -07:00
2018-12-28 12:11:44 -08:00
2017-11-02 11:10:55 +01:00
2018-12-28 12:11:48 -08:00
2017-11-02 11:10:55 +01:00
2018-12-28 12:11:48 -08:00
2018-06-15 07:55:25 +09:00
2017-12-11 14:54:44 +01:00
2018-08-30 20:01:32 +02:00
2018-06-15 07:55:25 +09:00
2019-01-04 13:13:48 -08:00
2017-12-14 16:00:48 -08:00
2018-06-15 07:55:25 +09:00
2018-10-31 08:54:12 -07:00
2019-02-12 16:33:18 -08:00
2018-12-28 12:11:47 -08:00
2018-12-28 12:11:52 -08:00
2019-01-04 13:13:47 -08:00
2018-06-07 17:34:35 -07:00
2019-02-01 15:46:23 -08:00
2018-01-23 12:17:42 -06:00
2018-07-17 09:35:30 +02:00
2018-12-28 12:11:48 -08:00
2018-01-31 17:18:37 -08:00
2018-12-28 12:11:46 -08:00
2018-08-22 10:52:44 -07:00
2018-12-28 12:11:50 -08:00
2016-03-17 15:09:34 -07:00
2018-12-28 12:11:51 -08:00
2018-12-28 12:11:51 -08:00
2018-08-17 16:20:32 -07:00
2018-09-03 15:12:09 +02:00
2018-12-28 12:11:50 -08:00
2018-10-31 08:54:16 -07:00
2018-12-28 12:11:49 -08:00
2018-12-28 12:11:52 -08:00
2018-10-21 10:46:41 -04:00
2019-02-01 15:46:23 -08:00
2019-02-01 15:46:23 -08:00
2019-01-08 17:15:11 -08:00
2018-12-08 10:26:20 -08:00
2018-08-22 10:52:44 -07:00
2017-11-02 11:10:55 +01:00
2019-02-01 15:46:24 -08:00
2019-01-24 09:04:37 +13:00
2018-08-17 16:20:27 -07:00
2018-12-28 12:11:47 -08:00
2018-12-28 12:11:47 -08:00
2017-03-02 08:42:38 +01:00
2018-11-27 09:21:46 -08:00
2018-12-28 12:11:50 -08:00
2017-11-02 11:10:55 +01:00
2018-12-28 12:11:50 -08:00
2019-01-04 13:13:48 -08:00
2017-11-02 11:10:55 +01:00
2018-10-26 16:38:15 -07:00
2019-02-01 15:46:23 -08:00
2019-02-17 15:48:43 -08:00
2018-06-07 17:34:36 -07:00
2019-02-12 16:33:18 -08:00
2018-10-31 08:54:16 -07:00
2019-01-04 13:13:48 -08:00
2018-12-28 12:11:46 -08:00
2018-12-28 12:11:46 -08:00
2018-11-01 14:42:49 -07:00
2018-10-31 08:54:11 -07:00
2018-12-28 12:11:49 -08:00
2018-04-05 21:36:27 -07:00
2017-11-02 11:10:55 +01:00
2018-12-18 09:04:08 -08:00
2018-06-12 16:19:22 -07:00
2018-02-18 05:33:01 -08:00
2018-11-01 09:27:57 -07:00
2018-10-09 16:51:11 +02:00
2018-02-06 18:32:48 -08:00
2017-11-02 11:10:55 +01:00
2018-12-28 12:11:46 -08:00
2019-01-10 02:58:21 -08:00
2017-10-03 17:54:24 -07:00
2018-12-28 12:11:47 -08:00
2018-12-29 11:21:49 -08:00
2019-01-08 17:15:11 -08:00
2018-12-28 12:11:43 -08:00
2018-06-07 17:34:34 -07:00
2019-01-08 17:15:11 -08:00
2018-10-31 08:54:16 -07:00
2018-12-28 12:11:49 -08:00
2017-11-02 11:10:55 +01:00
2018-08-22 10:52:44 -07:00
2018-10-28 11:35:40 -07:00
2019-01-04 13:13:48 -08:00
2018-12-28 12:11:52 -08:00
2018-11-30 14:56:14 -08:00
2019-01-08 17:15:11 -08:00
2019-01-08 17:15:11 -08:00
2019-01-08 17:15:11 -08:00
2018-09-13 15:18:04 -10:00
2018-12-28 12:11:47 -08:00
2018-06-07 17:34:36 -07:00
2019-02-12 16:33:18 -08:00
2018-12-28 12:11:47 -08:00
2018-12-28 12:11:47 -08:00
2018-11-18 10:15:09 -08:00
2018-02-06 18:32:48 -08:00
2018-02-21 15:35:43 -08:00
2018-10-26 16:26:35 -07:00
2018-12-28 12:11:47 -08:00