summaryrefslogtreecommitdiff
path: root/fs/ext2
diff options
context:
space:
mode:
authorAkinobu Mita <akinobu.mita@gmail.com>2008-04-28 02:16:00 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2008-04-28 08:58:43 -0700
commitbbff28602436cc7ca660757bba81f03b99e8586d (patch)
tree0bcbcd2e82e08ac15507b72947fb6c4605ddfe39 /fs/ext2
parent31f68e130149809c5d49583e1ff225dd5d404d83 (diff)
downloadkernel-common-bbff28602436cc7ca660757bba81f03b99e8586d.tar.gz
kernel-common-bbff28602436cc7ca660757bba81f03b99e8586d.tar.bz2
kernel-common-bbff28602436cc7ca660757bba81f03b99e8586d.zip
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>
Diffstat (limited to 'fs/ext2')
-rw-r--r--fs/ext2/dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext2/dir.c b/fs/ext2/dir.c
index 8dededd80fe2..a0995eb2dc23 100644
--- a/fs/ext2/dir.c
+++ b/fs/ext2/dir.c
@@ -299,7 +299,7 @@ ext2_readdir (struct file * filp, void * dirent, filldir_t filldir)
"bad page in #%lu",
inode->i_ino);
filp->f_pos += PAGE_CACHE_SIZE - offset;
- return -EIO;
+ return PTR_ERR(page);
}
kaddr = page_address(page);
if (unlikely(need_revalidate)) {