• Linus Torvalds's avatar
    romfs_readpage: don't report errors for pages beyond i_size · 0056e65f
    Linus Torvalds authored
    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: default avatarChris Fester <cfester@wms.com>
    Cc: Alexander Viro <viro@zeniv.linux.org.uk>
    Cc: Matt Waddel <matt.waddel@freescale.com>
    Cc: Greg Ungerer <gerg@snapgear.com>
    Signed-of-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
Last commit
Last update
Makefile Loading commit data...
inode.c Loading commit data...