Re: [PATCH 1/1] kernel/pid.c: Improve flow of a loop inside alloc_pidmap.

2013-03-11 Thread Raphael S Carvalho
On Mon, Mar 11, 2013 at 6:57 PM, Andrew Morton wrote: > On Mon, 11 Mar 2013 18:18:56 -0300 "Raphael S. Carvalho" > wrote: > >> From: Raphael S.Carvalho >> >> Notes: find_next_offset searches for an available "cleaned bit" >> in the respective pid bitmap (page), so returns the offset if found, >

Re: [PATCH 1/1] kernel/pid.c: Improve flow of a loop inside alloc_pidmap.

2013-03-11 Thread Andrew Morton
On Mon, 11 Mar 2013 18:18:56 -0300 "Raphael S. Carvalho" wrote: > From: Raphael S.Carvalho > > Notes: find_next_offset searches for an available "cleaned bit" > in the respective pid bitmap (page), so returns the offset if found, > otherwise it returns a value equals to BITS_PER_PAGE. > > For

[PATCH 1/1] kernel/pid.c: Improve flow of a loop inside alloc_pidmap.

2013-03-11 Thread Raphael S. Carvalho
From: Raphael S.Carvalho Notes: find_next_offset searches for an available "cleaned bit" in the respective pid bitmap (page), so returns the offset if found, otherwise it returns a value equals to BITS_PER_PAGE. For example, suppose find_next_offset didn't find any available bit, so there's no p

[PATCH 1/1] kernel/pid.c: Improve flow of a loop inside alloc_pidmap.

2013-03-08 Thread Raphael S.Carvalho
Notes: find_next_offset searches for an available "cleaned bit" in the respective pid bitmap (page), so returns the offset if found, otherwise it returns a value equals to BITS_PER_PAGE (invalid offset). For example, suppose find_next_offset didn't find any available bit, so there's no purpose to