projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
31f68e1
)
ext2: improve ext2_readdir() return value
author
Akinobu Mita
<
[email protected]
>
Mon, 28 Apr 2008 09:16:00 +0000
(
02:16
-0700)
committer
Linus Torvalds
<
[email protected]
>
Mon, 28 Apr 2008 15:58:43 +0000
(08:58 -0700)
Improve ext2_readdir() return value for ext2_get_page() failure by using the
actual result of ext2_get_page().
Signed-off-by: Akinobu Mita <
[email protected]
>
Cc: <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
fs/ext2/dir.c
patch
|
blob
|
history
diff --git
a/fs/ext2/dir.c
b/fs/ext2/dir.c
index 8dededd80fe2fa6747699c70b81d211b77d49ff0..a0995eb2dc232c2b7ddc79df644482a9a651c9e0 100644
(file)
--- 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)) {