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-12 16:33:18 -08:00
2018-12-28 12:11:46 -08:00
2018-10-31 08:54:16 -07:00
2018-06-07 17:34:36 -07:00
2018-10-31 08:54:16 -07:00
2018-11-01 14:42:49 -07:00
2018-12-28 12:11:43 -08:00
2019-01-04 13:13:48 -08:00
2018-11-18 10:15:09 -08:00
2018-02-06 18:32:48 -08:00