Re: [PATCH] mm: prevent divide error for small values ofvm_dirty_bytes

From: David Rientjes
Date: Wed Apr 29 2009 - 05:26:30 EST


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?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/