From: Linus Torvalds Date: Wed, 30 Jul 2008 21:26:25 +0000 (-0700) Subject: romfs_readpage: don't report errors for pages beyond i_size X-Git-Tag: v2.6.27-rc2~116 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0056e65f9e28d83ee1a3fb4f7d0041e838f03c34;p=pandora-kernel.git romfs_readpage: don't report errors for pages beyond i_size We zero-fill them like we are supposed to, and that's all fine. It's only an error if the 'romfs_copyfrom()' routine isn't able to fill the data that is supposed to be there. Most of the patch is really just re-organizing the code a bit, and using separate variables for the error value and for how much of the page we actually filled from the filesystem. Reported-and-tested-by: Chris Fester Cc: Alexander Viro Cc: Matt Waddel Cc: Greg Ungerer Signed-of-by: Linus Torvalds --- Reading git-diff-tree failed