]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm: do not inc NR_PAGETABLE if ptlock_init failed
authorVladimir Davydov <vdavydov@virtuozzo.com>
Wed, 21 Oct 2015 22:03:16 +0000 (09:03 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 21 Oct 2015 22:03:16 +0000 (09:03 +1100)
commitf683075e3d5ab88f1e1879a7426a098716cd0c73
treebdd4180bc29e3cd9e6cdf7c291f6ed14c8db41dd
parent0ee052b40392c293be17b393f72706bf10918fcf
mm: do not inc NR_PAGETABLE if ptlock_init failed

If ALLOC_SPLIT_PTLOCKS is defined, ptlock_init may fail, in which case we
shouldn't increment NR_PAGETABLE.

Since small allocations, such as ptlock, normally do not fail (currently
they can fail if kmemcg is used though), this patch does not really fix
anything and should be considered as a code cleanup.

Signed-off-by: Vladimir Davydov <vdavydov@virtuozzo.com>
Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/mm.h