From: Suzuki Date: Tue, 11 Oct 2005 15:29:06 +0000 (-0700) Subject: [PATCH] madvise: Avoid returning error code -EBADF for anonymous mappings X-Git-Tag: v2.6.14-rc5~82 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1bef40032992320dd25a266fc166bfb8fa3f2f59;p=pandora-kernel.git [PATCH] madvise: Avoid returning error code -EBADF for anonymous mappings Revert this recent correctness change: Douglas Crosher reported that it broke an existing application, and that madvise() works without error on anonymous mappings on Solaris. This means that madvise() will remain non-standards-compliant: we should return -EBADF for all requests against non-file-backed vma's, but Linux only does this for MADV_WILLNEED requests. Signed-off-by: Suzuki K P Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed