diff options
author | nkalmala <nkalmala@gmail.com> | 2006-11-02 22:07:04 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-11-03 12:27:56 -0800 |
commit | 941c7105dc4f4961727acc518e18e00b9a03cbf3 (patch) | |
tree | a57c90d295b48492d2e6f1151cdcdff31475aa70 /mm | |
parent | c7e12b838989b0e432c7a1cdf1e6c6fd936007f6 (diff) | |
download | linux-3.10-941c7105dc4f4961727acc518e18e00b9a03cbf3.tar.gz linux-3.10-941c7105dc4f4961727acc518e18e00b9a03cbf3.tar.bz2 linux-3.10-941c7105dc4f4961727acc518e18e00b9a03cbf3.zip |
[PATCH] mm: un-needed add-store operation wastes a few bytes
Un-needed add-store operation wastes a few bytes.
8 bytes wasted with -O2, on a ppc.
Signed-off-by: nkalmala <nkalmala@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/page_alloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index b55bb358b83..bf2f6cff1d6 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -853,7 +853,7 @@ again: pcp = &zone_pcp(zone, cpu)->pcp[cold]; local_irq_save(flags); if (!pcp->count) { - pcp->count += rmqueue_bulk(zone, 0, + pcp->count = rmqueue_bulk(zone, 0, pcp->batch, &pcp->list); if (unlikely(!pcp->count)) goto failed; |