Re: [PATCH 2/4] modify swap_map and add SWAP_HAS_CACHE flag.

Balbir Singh
2009-05-30T11:36:11Z

* 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