lkml.org 
[lkml]   [2011]   [Aug]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 5/5] writeback: IO-less balance_dirty_pages()
    > > +             bw = (u64)base_bw * bw >> BANDWIDTH_CALC_SHIFT;
    > > + pause = (HZ * pages_dirtied + bw / 2) / (bw | 1);
    > > + pause = min(pause, MAX_PAUSE);
    >
    > Fix this build warning:
    >
    > mm/page-writeback.c: In function ‘balance_dirty_pages’:
    > mm/page-writeback.c:889:11: warning: comparison of distinct pointer types lacks a cast

    Thanks! I'll fix it by changing `pause' to "long", since we'll have
    negative pause time anyway when considering think time compensation.

    Thanks,
    Fengguang
    --
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2011-08-07 08:47    [W:0.019 / U:33.512 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site