[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20090210141613.276a3c9c.akpm@linux-foundation.org>
Date: Tue, 10 Feb 2009 14:16:13 -0800
From: Andrew Morton <akpm@...ux-foundation.org>
To: Johannes Weiner <hannes@...xchg.org>
Cc: riel@...hat.com, wli@...ementarian.org,
kosaki.motohiro@...fujitsu.com, linux-kernel@...r.kernel.org,
linux-mm@...ck.org
Subject: Re: [RFC] vmscan: initialize sc->nr_reclaimed in
do_try_to_free_pages()
On Mon, 9 Feb 2009 23:24:16 +0100
Johannes Weiner <hannes@...xchg.org> wrote:
> The commit missed to actually adjust do_try_to_free_pages() which now
> does not initialize sc.nr_reclaimed and makes shrink_zone() make
> assumptions on whether to bail out of the reclaim cycle based on an
> uninitialized value.
Both callers of do_try_to_free_pages() _do_ initialise
scan_control.nr_reclaimed. The unitemised fields in a struct
initaliser are reliably zeroed.
We often rely upon this, and the only reason for mentioning such a
field is for documentation reasons, or if you want to add a comment at
the initialisation site.
--
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