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

From: Andrew Morton
Date: Wed Apr 29 2009 - 17:49:56 EST


On Wed, 29 Apr 2009 11:34:51 +0200
Andrea Righi <righi.andrea@xxxxxxxxx> wrote:

> --- a/Documentation/sysctl/vm.txt
> +++ b/Documentation/sysctl/vm.txt
> @@ -90,6 +90,10 @@ will itself start writeback.
> If dirty_bytes is written, dirty_ratio becomes a function of its value
> (dirty_bytes / the amount of dirtyable system memory).
>
> +Note: the minimum value allowed for dirty_bytes is two pages (in bytes); any
> +value lower than this limit will be ignored and the old configuration will be
> +retained.

Well. This implies that the write to the procfs file would appear to
succeed. One hopes that the write would in fact return -EINVAL or
such?
--
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/