Re: [PATCH] ubifs: fix read fail but return ok

2021-04-07 Thread Richard Weinberger
On Wed, Mar 31, 2021 at 8:29 AM wangfangpeng 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 wil

[PATCH] ubifs: fix read fail but return ok

2021-03-30 Thread wangfangpeng
do_readpage() may return err, but ubifs_readpage() always return ok. The vfs will ignore the err happen in ubifs. Fixes: 1e51764a3c2ac05a2 ("UBIFS: add new flash file system") Cc: #v2.6.27 Signed-off-by: wangfangpeng --- fs/ubifs/file.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-