All of lore.kernel.org
 help / color / mirror / Atom feed
* [Ocfs2-devel] [PATCH 1/1] OCFS2: add IO error check in ocfs2_get_sector() -v3
@ 2009-02-13  2:11 wengang wang
  2009-02-13  5:04 ` Sunil Mushran
  0 siblings, 1 reply; 2+ messages in thread
From: wengang wang @ 2009-02-13  2:11 UTC (permalink / raw)
  To: ocfs2-devel

checks IO error in ocfs2_get_sector().

this patch is based on Linus' git.

Signed-off-by: Wengang Wang <wen.gang.wang@oracle.com>
--
diff -up ./fs/ocfs2/super.c.orig ./fs/ocfs2/super.c
--- ./fs/ocfs2/super.c.orig	2009-02-12 18:05:19.023685000 -0800
+++ ./fs/ocfs2/super.c	2009-02-12 18:07:13.995623000 -0800
@@ -1537,6 +1537,13 @@ static int ocfs2_get_sector(struct super
 	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;
 }
 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Ocfs2-devel] [PATCH 1/1] OCFS2: add IO error check in ocfs2_get_sector() -v3
  2009-02-13  2:11 [Ocfs2-devel] [PATCH 1/1] OCFS2: add IO error check in ocfs2_get_sector() -v3 wengang wang
@ 2009-02-13  5:04 ` Sunil Mushran
  0 siblings, 0 replies; 2+ messages in thread
From: Sunil Mushran @ 2009-02-13  5:04 UTC (permalink / raw)
  To: ocfs2-devel

Signed-off-by: Sunil Mushran <sunil.mushran@oracle.com>


On Feb 12, 2009, at 6:11 PM, wengang wang <wen.gang.wang@oracle.com>  
wrote:

> checks IO error in ocfs2_get_sector().
>
> this patch is based on Linus' git.
>
> Signed-off-by: Wengang Wang <wen.gang.wang@oracle.com>
> --
> diff -up ./fs/ocfs2/super.c.orig ./fs/ocfs2/super.c
> --- ./fs/ocfs2/super.c.orig    2009-02-12 18:05:19.023685000 -0800
> +++ ./fs/ocfs2/super.c    2009-02-12 18:07:13.995623000 -0800
> @@ -1537,6 +1537,13 @@ static int ocfs2_get_sector(struct super
>    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;
> }
>
>
> _______________________________________________
> Ocfs2-devel mailing list
> Ocfs2-devel at oss.oracle.com
> http://oss.oracle.com/mailman/listinfo/ocfs2-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-02-13  5:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-13  2:11 [Ocfs2-devel] [PATCH 1/1] OCFS2: add IO error check in ocfs2_get_sector() -v3 wengang wang
2009-02-13  5:04 ` Sunil Mushran

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.