[PATCH] ubifs: fix read fail but return ok

Richard Weinberger richard.weinberger at gmail.com
Wed Apr 7 23:11:19 BST 2021


On Wed, Mar 31, 2021 at 8:29 AM wangfangpeng <wangfangpeng1 at huawei.com> wrote:
> do_readpage() may return err, but ubifs_readpage() always return ok.
> The vfs will ignore the err happen in ubifs.

Are you sure about that?
In case of an error UBIFS sets the error flag of the page and does not
mark it as uptodate,
so vfs will emit -EIO. At least this is the theory. :-)

-- 
Thanks,
//richard



More information about the linux-mtd mailing list