• Andi Kleen's avatar
    [PATCH] Fix page cache limit wrapping in filesystems · 2ad3072d
    Andi Kleen authored
    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.
    2ad3072d
inode.c 32.5 KB