]> git.karo-electronics.de Git - karo-tx-linux.git/commit
CMA: make putback_lru_pages() call conditional
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Wed, 20 Feb 2013 02:13:58 +0000 (13:13 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Feb 2013 05:52:20 +0000 (16:52 +1100)
commiteb0ee2ab3264e64fdcddd37efcadecb3e6bae9ce
treeb06b5e594b33bdd2cbd3aa421a5fb99efb365787
parent9acd03c2167c3f11d07cfb274a212b6ed5924c26
CMA: make putback_lru_pages() call conditional

As per documentation and other places calling putback_lru_pages(),
putback_lru_pages() is called on error only.  Make the CMA code behave
consistently.

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Acked-by: Michal Nazarewicz <mina86@mina86.com>
Cc: Marek Szyprowski <m.szyprowski@samsung.com>
Cc: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/page_alloc.c