Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1250610

Re: [PATCH] mm: do not inc NR_PAGETABLE if ptlock_init failed

From "Kirill A. Shutemov" <kirill@shutemov.name>
Newsgroups linux.kernel
Subject Re: [PATCH] mm: do not inc NR_PAGETABLE if ptlock_init failed
Date 2015-10-19 14:30 +0200
Message-ID <qlhJF-4h2-25@gated-at.bofh.it> (permalink)
References <qlhzX-45I-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Mon, Oct 19, 2015 at 03:14:41PM +0300, Vladimir Davydov wrote:
> 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>

-- 
 Kirill A. Shutemov
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] mm: do not inc NR_PAGETABLE if ptlock_init failed Vladimir Davydov <vdavydov@virtuozzo.com> - 2015-10-19 14:20 +0200
  Re: [PATCH] mm: do not inc NR_PAGETABLE if ptlock_init failed "Kirill A. Shutemov" <kirill@shutemov.name> - 2015-10-19 14:30 +0200
  Re: [PATCH] mm: do not inc NR_PAGETABLE if ptlock_init failed Michal Hocko <mhocko@kernel.org> - 2015-10-19 15:30 +0200

csiph-web