[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20090211195116.C3BA.KOSAKI.MOTOHIRO@jp.fujitsu.com>
Date: Wed, 11 Feb 2009 19:52:12 +0900 (JST)
From: KOSAKI Motohiro <kosaki.motohiro@...fujitsu.com>
To: Andrew Morton <akpm@...ux-foundation.org>
Cc: kosaki.motohiro@...fujitsu.com, minchan.kim@...il.com,
hannes@...xchg.org, riel@...hat.com, wli@...ementarian.org,
linux-kernel@...r.kernel.org, linux-mm@...ck.org
Subject: Re: [PATCH] vmscan: initialize sc->nr_reclaimed properly take2
> > @@ -2245,6 +2247,7 @@ static int __zone_reclaim(struct zone *z
> > struct reclaim_state reclaim_state;
> > int priority;
> > struct scan_control sc = {
> > + .nr_reclaimed = 0,
> > .may_writepage = !!(zone_reclaim_mode & RECLAIM_WRITE),
> > .may_swap = !!(zone_reclaim_mode & RECLAIM_SWAP),
> > .swap_cluster_max = max_t(unsigned long, nr_pages,
>
> Confused. The compiler already initialises any unmentioned fields to zero,
> so this patch has no effect.
maybe, I was slept too ;-/
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists