hostfs: Set page flags in hostfs_readpage() correctly
authorRichard Weinberger <richard@nod.at>
Wed, 4 Mar 2015 11:44:03 +0000 (12:44 +0100)
committerRichard Weinberger <richard@nod.at>
Thu, 26 Mar 2015 22:27:53 +0000 (23:27 +0100)
commitb86b413a321105cb75373b48fd7ba53fcbc7ec4c
tree29e08921ac4ed420361003277ea5cb82e26766ff
parentbd1052a245c004068a7123aa077c576be64639e4
hostfs: Set page flags in hostfs_readpage() correctly

In case of an error set the page error flag and clear the up-to-date
flag.
If the read was successful clear the error flag unconditionally.

Signed-off-by: Richard Weinberger <richard@nod.at>
fs/hostfs/hostfs_kern.c