lkml.org 
[lkml]   [2009]   [Feb]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: [PATCH] vmscan: initialize sc->nr_reclaimed properly take2
    Date
    > > @@ -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 ;-/






    \
     
     \ /
      Last update: 2009-02-11 11:55    [W:0.021 / U:62.592 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site