lkml.org 
[lkml]   [2009]   [Apr]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH] mm: prevent divide error for small values of vm_dirty_bytes
    On Wed, 29 Apr 2009, Andrea Righi wrote:

    > Avoid to set less than two pages for vm_dirty_byte: this is necessary to avoid
    > potential division by 0 (like the following) in get_dirty_limits().
    >

    Where exactly is the divide by 0 in get_dirty_limits()?

    Is this because we forced the background threshold to be half of the dirty
    threshold when its setting is greater?


    \
     
     \ /
      Last update: 2009-04-29 11:29    [W:0.051 / U:0.572 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site