mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 3/3] exofs:typo correction
@ 2011-03-31  6:46 Pan Weiping
  0 siblings, 0 replies; only message in thread
From: Pan Weiping @ 2011-03-31  6:46 UTC (permalink / raw)
  Cc: Pan Weiping, Boaz Harrosh, Benny Halevy,
	open list:OSD LIBRARY and F...,
	open list

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-03-31  6:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-31  6:46 [PATCH 3/3] exofs:typo correction Pan Weiping

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®