From: Thomas Tuttle Date: Fri, 6 Jun 2008 05:46:58 +0000 (-0700) Subject: pagemap: return EINVAL, not EIO, for unaligned reads of kpagecount or kpageflags X-Git-Tag: v2.6.26-rc6~39 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4710d1ac4c491dd8a28f57946214c0b5fe73cc87;p=pandora-kernel.git pagemap: return EINVAL, not EIO, for unaligned reads of kpagecount or kpageflags If the user tries to read from a position that is not a multiple of 8, or read a number of bytes that is not a multiple of 8, they have passed an invalid argument to read, for the purpose of reading these files. It's not an IO error because we didn't encounter any trouble finding the data they asked for. Signed-off-by: Thomas Tuttle Cc: Matt Mackall Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed