lkml.org 
[lkml]   [2009]   [May]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2/4] modify swap_map and add SWAP_HAS_CACHE flag.
* KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> [2009-05-30 20:16:51]:

> Balbir Singh wrote:
> >> #define SWAP_CLUSTER_MAX 32
> >>
> >> -#define SWAP_MAP_MAX 0x7fff
> >> -#define SWAP_MAP_BAD 0x8000
> >> -
> >> +#define SWAP_MAP_MAX 0x7ffe
> >> +#define SWAP_MAP_BAD 0x7fff
> >> +#define SWAP_HAS_CACHE 0x8000 /* There is a swap cache of entry. */
> >
> > Why count, can't we use swp->flags?
> >
>
> Hmm ? swap_map just only a "unsiged short" value per entry..sorry,
> I can't catch what you mention to.

Sorry for the noise, the count is directly contained in swap_map[].

--
Balbir


\
 
 \ /
  Last update: 2009-05-30 13:39    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site