]> git.karo-electronics.de Git - karo-tx-linux.git/commit
zisofs: fix readpage() outside i_size
authorDave Young <hidave.darkstar@gmail.com>
Thu, 20 Mar 2008 02:45:04 +0000 (02:45 +0000)
committerChris Wright <chrisw@sous-sol.org>
Mon, 24 Mar 2008 18:48:02 +0000 (11:48 -0700)
commit6eb36c282b77ba9f392e7bc332f7fda80c310db6
treeea28969523fdfaf32de9c561617a681581b55aee
parent58392e3a38e2a7a3d4a8e70889be017346c94e90
zisofs: fix readpage() outside i_size

commit: 08ca0db8aa2db4ddcf487d46d85dc8ffb22162cc

A read request outside i_size will be handled in do_generic_file_read().  So
we just return 0 to avoid getting -EIO as normal reading, let
do_generic_file_read do the rest.

At the same time we need unlock the page to avoid system stuck.

Fixes http://bugzilla.kernel.org/show_bug.cgi?id=10227

Signed-off-by: Dave Young <hidave.darkstar@gmail.com>
Acked-by: Jan Kara <jack@suse.cz>
Report-by: Christian Perle <chris@linuxinfotag.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/isofs/compress.c