On Wed, Mar 31, 2021 at 8:29 AM wangfangpeng wangfangpeng1@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. :-)