Re: [PATCH] Fix page cache limit wrapping in filesystems

From: Alexander Viro (viro@math.psu.edu)
Date: Wed Feb 06 2002 - 21:40:35 EST


On Thu, 7 Feb 2002, Andi Kleen wrote:

>
> Several file systems in tree that nominally support files >2GB set their
> s_maxbytes value to ~0ULL. This has the nasty side effect on 32bit machines
> that when a file write reaches the page cache limit (e.g. 2^43) it'll silently
> wrap and destroy data at the beginning of the file.
>
> This patch changes the file systems in question to fill in a proper limit.
>
> I also have an alternate patch that adds a check for this generically
> in super.c, but preliminary comments from Al suggested that he prefered
> to do it in the file systems, so it is done this way way.
>
> Patch for 2.5.4pre1. Please consider applying.

Looks OK.

-
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/



This archive was generated by hypermail 2b29 : Thu Feb 07 2002 - 21:00:57 EST