diff options
author | Vladimir Davydov <vdavydov@virtuozzo.com> | 2015-11-06 05:49:27 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-11-06 06:34:48 +0300 |
commit | 706874e9096e9d468eed9c2b03c8374e806535f3 (patch) | |
tree | faafbd597b50f57df9c4e001e84ac2d13e2eae12 /Documentation/nvmem | |
parent | 5d3875a01eeafef7ef0b73a99462cb9bd55e8485 (diff) | |
download | linux-706874e9096e9d468eed9c2b03c8374e806535f3.tar.xz |
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation/nvmem')
0 files changed, 0 insertions, 0 deletions