Messages in this thread | | | Date | Wed, 29 Apr 2009 02:26:11 -0700 (PDT) | From | David Rientjes <> | Subject | Re: [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?
| |