ext2: improve ext2_readdir() return value
Improve ext2_readdir() return value for ext2_get_page() failure by using the actual result of ext2_get_page(). Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com> Cc: <linux-ext4@vger.kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
31f68e1301
commit
bbff286024
1 changed files with 1 additions and 1 deletions
|
@ -299,7 +299,7 @@ ext2_readdir (struct file * filp, void * dirent, filldir_t filldir)
|
||||||
"bad page in #%lu",
|
"bad page in #%lu",
|
||||||
inode->i_ino);
|
inode->i_ino);
|
||||||
filp->f_pos += PAGE_CACHE_SIZE - offset;
|
filp->f_pos += PAGE_CACHE_SIZE - offset;
|
||||||
return -EIO;
|
return PTR_ERR(page);
|
||||||
}
|
}
|
||||||
kaddr = page_address(page);
|
kaddr = page_address(page);
|
||||||
if (unlikely(need_revalidate)) {
|
if (unlikely(need_revalidate)) {
|
||||||
|
|
Loading…
Reference in a new issue