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

From: Balbir Singh
Date: Sat May 30 2009 - 07:36:17 EST


* KAMEZAWA Hiroyuki <kamezawa.hiroyu@xxxxxxxxxxxxxx> [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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/