Files
android_kernel_xiaomi_sm8450/kernel
Mel Gorman d26914d117 mm: optimize put_mems_allowed() usage
Since put_mems_allowed() is strictly optional, its a seqcount retry, we
don't need to evaluate the function if the allocation was in fact
successful, saving a smp_rmb some loads and comparisons on some relative
fast-paths.

Since the naming, get/put_mems_allowed() does suggest a mandatory
pairing, rename the interface, as suggested by Mel, to resemble the
seqcount interface.

This gives us: read_mems_allowed_begin() and read_mems_allowed_retry(),
where it is important to note that the return value of the latter call
is inverted from its previous incarnation.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Mel Gorman <mgorman@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2014-04-03 16:20:58 -07:00
..
2014-02-27 12:43:26 +01:00
2013-11-13 12:09:34 +09:00
2014-03-22 11:33:09 +01:00
2014-04-03 16:20:58 -07:00
2013-12-04 14:09:46 +10:30
2013-12-18 19:04:50 -08:00
2014-02-20 14:54:28 +01:00
2013-09-11 15:58:27 -07:00