• Andrew Morton's avatar
    [PATCH] Fix generic_file_readonly_mmap() · b91c1b1b
    Andrew Morton authored
    We cannot clear VM_MAYWRITE in there - it turns writeable MAP_PRIVATE
    mappings into readonly ones.
    
    So change it back to the 2.4 form - disallow a writeable MAP_SHARED mapping
    against filesystems which do not implement ->writepage().
    b91c1b1b
filemap.c 45.9 KB