lkml.org 
[lkml]   [2011]   [Nov]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 3/5] uprobes: introduce uprobe_xol_slots[NR_CPUS]
From
Date
On Mon, 2011-11-28 at 20:07 +0100, Oleg Nesterov wrote:
> + UPROBE_XOL_FIRST_PAGE = UPROBE_XOL_LAST_PAGE
> + + NR_CPUS * UPROBES_XOL_SLOT_BYTES / PAGE_SIZE,

I think that wants to be:
+ DIV_ROUND_UP(NR_CPUS * UPROBES_XOL_SLOT_BYTES, PAGE_SIZE);

otherwise you'll end up with 0 pages for UP and the sort.


\
 
 \ /
  Last update: 2011-11-28 20:51    [W:0.297 / U:0.032 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site