lkml.org 
[lkml]   [2013]   [Sep]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] slub: Fix calculation of cpu slabs
On Tue, 10 Sep 2013, Li Zefan wrote:

> We should use page->pages instead of page->pobjects when calculating
> the number of cpu partial slabs. This also fixes the mapping of slabs
> and nodes.

True.

> As there's no variable storing the number of total/active objects in
> cpu partial slabs, and we don't have user interfaces requiring those
> statistics, I just add WARN_ON for those cases.


Well that is not strictly required but it does not hurt either.

Acked-by: Christoph Lameter <cl@linux.com>


\
 
 \ /
  Last update: 2013-09-10 23:21    [W:2.839 / U:0.488 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site