mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Pan Weiping <panweiping3@gmail.com>
To: unlisted-recipients:; (no To-header on input)
Cc: Pan Weiping <panweiping3@gmail.com>,
	Boaz Harrosh <bharrosh@panasas.com> (maintainer:OSD LIBRARY and
	F...),
	Benny Halevy <bhalevy@panasas.com> (maintainer:OSD LIBRARY and
	F...), osd-dev@open-osd.org (open list:OSD LIBRARY and F...),
	linux-kernel@vger.kernel.org (open list)
Subject: [PATCH 3/3] exofs:typo correction
Date: Thu, 31 Mar 2011 14:46:41 +0800	[thread overview]
Message-ID: <1301554001-29133-1-git-send-email-panweiping3@gmail.com> (raw)

use accumulated_osd_erry instead of acumulated_osd_err.
use accumulated_lin_err instead of acumulated_lin_err.

Signed-off-by: Pan Weiping <panweiping3@gmail.com>
---
 fs/exofs/ios.c |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/fs/exofs/ios.c b/fs/exofs/ios.c
index f74a2ec..cf0858e 100644
--- a/fs/exofs/ios.c
+++ b/fs/exofs/ios.c
@@ -216,8 +216,8 @@ static void _clear_bio(struct bio *bio)
 
 int exofs_check_io(struct exofs_io_state *ios, u64 *resid)
 {
-	enum osd_err_priority acumulated_osd_err = 0;
-	int acumulated_lin_err = 0;
+	enum osd_err_priority accumulated_osd_erry = 0;
+	int accumulated_lin_err = 0;
 	int i;
 
 	for (i = 0; i < ios->numdevs; i++) {
@@ -243,21 +243,21 @@ int exofs_check_io(struct exofs_io_state *ios, u64 *resid)
 			continue; /* we recovered */
 		}
 
-		if (osi.osd_err_pri >= acumulated_osd_err) {
-			acumulated_osd_err = osi.osd_err_pri;
-			acumulated_lin_err = ret;
+		if (osi.osd_err_pri >= accumulated_osd_erry) {
+			accumulated_osd_erry = osi.osd_err_pri;
+			accumulated_lin_err = ret;
 		}
 	}
 
 	/* TODO: raid specific residual calculations */
 	if (resid) {
-		if (likely(!acumulated_lin_err))
+		if (likely(!accumulated_lin_err))
 			*resid = 0;
 		else
 			*resid = ios->length;
 	}
 
-	return acumulated_lin_err;
+	return accumulated_lin_err;
 }
 
 /*
-- 
1.7.4


                 reply	other threads:[~2011-03-31  6:45 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1301554001-29133-1-git-send-email-panweiping3@gmail.com \
    --to=panweiping3@gmail.com \
    --cc=bhalevy@panasas.com \
    --cc=bharrosh@panasas.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=osd-dev@open-osd.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®