Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e2b4a52
)
LU-11169 obdclass: fix old return code usage
06/32906/8
author
Alexey Lyashkov
<c17817@cray.com>
Sat, 15 Sep 2018 07:33:51 +0000
(10:33 +0300)
committer
Oleg Drokin
<green@whamcloud.com>
Mon, 1 Oct 2018 14:00:38 +0000
(14:00 +0000)
Commit
49d8a7ccd73
from LU-9855 introduce a fail in the
obd_commitrw function which parent error code
replaced with result of exp_check_ops function.
Cray-bugid: LUS-6195
Test-Parameters: trivial
Change-Id: If8643ba39232f94ba9c523fdb9f10c1411a1838a
Signed-off-by: Alexey Lyashkov <c17817@cray.com>
Reviewed-on: https://review.whamcloud.com/32906
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Ben Evans <bevans@cray.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/obd_class.h
patch
|
blob
|
history
diff --git
a/lustre/include/obd_class.h
b/lustre/include/obd_class.h
index
293924e
..
3c9af4c
100644
(file)
--- a/
lustre/include/obd_class.h
+++ b/
lustre/include/obd_class.h
@@
-1112,8
+1112,9
@@
static inline int obd_commitrw(const struct lu_env *env, int cmd,
struct obd_export *exp, struct obdo *oa,
int objcount, struct obd_ioobj *obj,
struct niobuf_remote *rnb, int pages,
- struct niobuf_local *local,
int
rc)
+ struct niobuf_local *local,
const int orig_
rc)
{
+ int rc;
ENTRY;
rc = exp_check_ops(exp);
@@
-1127,7
+1128,7
@@
static inline int obd_commitrw(const struct lu_env *env, int cmd,
}
rc = OBP(exp->exp_obd, commitrw)(env, cmd, exp, oa, objcount, obj,
- rnb, pages, local, rc);
+ rnb, pages, local,
orig_
rc);
RETURN(rc);
}