diff options
| author | Linus Torvalds <[email protected]> | 2008-07-30 21:26:25 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2008-07-30 21:30:34 +0000 |
| commit | 0056e65f9e28d83ee1a3fb4f7d0041e838f03c34 (patch) | |
| tree | d19f284da83ab82dc45b293ca4c06df0bd136dff /Documentation/filesystems/configfs/configfs_example_macros.c | |
| parent | Merge branch 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/po... (diff) | |
| download | kernel-0056e65f9e28d83ee1a3fb4f7d0041e838f03c34.tar.gz kernel-0056e65f9e28d83ee1a3fb4f7d0041e838f03c34.zip | |
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 <[email protected]>
Cc: Alexander Viro <[email protected]>
Cc: Matt Waddel <[email protected]>
Cc: Greg Ungerer <[email protected]>
Signed-of-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'Documentation/filesystems/configfs/configfs_example_macros.c')
0 files changed, 0 insertions, 0 deletions
