Re: [-mm][PATCH 2/4] Setup the memrlimit controller (v5)

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Balbir Singh
Date: Wednesday, June 11, 2008 - 11:13 pm

Andrew Morton wrote:

That should do the right thing, provided there are no duplicate ALIGN defintions
elsewhere

kernel.h has


#define ALIGN(x,a)              __ALIGN_MASK(x,(typeof(x))(a)-1)
#define __ALIGN_MASK(x,mask)    (((x)+(mask))&~(mask))

Which seems like the correct thing, since we use typeof(x) for (a) - 1.



-- 
	Warm Regards,
	Balbir Singh
	Linux Technology Center
	IBM, ISTL
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[-mm][PATCH 0/4] Add memrlimit controller (v5), Balbir Singh, (Wed May 21, 8:29 am)
[-mm][PATCH 2/4] Setup the memrlimit controller (v5), Balbir Singh, (Wed May 21, 8:29 am)
Re: [-mm][PATCH 2/4] Setup the memrlimit controller (v5), Andrew Morton, (Wed May 21, 9:18 pm)
Re: [-mm][PATCH 2/4] Setup the memrlimit controller (v5), Andrea Righi, (Wed Jun 11, 10:10 am)
Re: [-mm][PATCH 2/4] Setup the memrlimit controller (v5), Balbir Singh, (Wed Jun 11, 10:33 am)
Re: [-mm][PATCH 2/4] Setup the memrlimit controller (v5), Andrea Righi, (Wed Jun 11, 11:48 am)
Re: [-mm][PATCH 2/4] Setup the memrlimit controller (v5), Andrew Morton, (Wed Jun 11, 12:15 pm)
Re: [-mm][PATCH 2/4] Setup the memrlimit controller (v5), Andrew Morton, (Wed Jun 11, 1:43 pm)
Re: [-mm][PATCH 2/4] Setup the memrlimit controller (v5), Andrew Morton, (Wed Jun 11, 3:55 pm)
Re: [-mm][PATCH 2/4] Setup the memrlimit controller (v5), Balbir Singh, (Wed Jun 11, 11:13 pm)
Re: [-mm][PATCH 2/4] Setup the memrlimit controller (v5), Andrew Morton, (Thu Jun 12, 2:02 am)