diff options
author | wengang wang <wen.gang.wang@oracle.com> | 2009-02-13 03:11:47 +0100 |
---|---|---|
committer | Mark Fasheh <mfasheh@suse.com> | 2009-02-26 20:51:12 +0100 |
commit | 28d57d437786eb3e44f1ca3f0f41e7cfe29c6dd4 (patch) | |
tree | f6dfd111dac45ee7e2b366eb47a2598f46460a1e /fs/ocfs2/super.c | |
parent | ocfs2: set gap to seperate entry and value when xattr in bucket (diff) | |
download | linux-28d57d437786eb3e44f1ca3f0f41e7cfe29c6dd4.tar.xz linux-28d57d437786eb3e44f1ca3f0f41e7cfe29c6dd4.zip |
ocfs2: add IO error check in ocfs2_get_sector()
Check for IO error in ocfs2_get_sector().
Signed-off-by: Wengang Wang <wen.gang.wang@oracle.com>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
Diffstat (limited to '')
-rw-r--r-- | fs/ocfs2/super.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/ocfs2/super.c b/fs/ocfs2/super.c index 1c3acc4654d8..7ac83a81ee55 100644 --- a/fs/ocfs2/super.c +++ b/fs/ocfs2/super.c @@ -1537,6 +1537,13 @@ static int ocfs2_get_sector(struct super_block *sb, unlock_buffer(*bh); ll_rw_block(READ, 1, bh); wait_on_buffer(*bh); + if (!buffer_uptodate(*bh)) { + mlog_errno(-EIO); + brelse(*bh); + *bh = NULL; + return -EIO; + } + return 0; } |