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:
94eb8da
)
revert last commit, transfer a positive value should be better.
author
lsy
<lsy>
Fri, 13 Oct 2006 12:58:52 +0000
(12:58 +0000)
committer
lsy
<lsy>
Fri, 13 Oct 2006 12:58:52 +0000
(12:58 +0000)
lustre/mdc/mdc_request.c
patch
|
blob
|
history
lustre/mdt/mdt_handler.c
patch
|
blob
|
history
diff --git
a/lustre/mdc/mdc_request.c
b/lustre/mdc/mdc_request.c
index
f408a6a
..
359197a
100644
(file)
--- a/
lustre/mdc/mdc_request.c
+++ b/
lustre/mdc/mdc_request.c
@@
-1629,8
+1629,8
@@
static int mdc_interpret_renew_capa(struct ptlrpc_request *req, void *unused,
if (body == NULL)
GOTO(out, capa = ERR_PTR(-EFAULT));
- if (body->
size
)
- GOTO(out, capa = ERR_PTR(
(long)body->size
));
+ if (body->
flags
)
+ GOTO(out, capa = ERR_PTR(
-(long)body->flags
));
if ((body->valid & OBD_MD_FLOSSCAPA) == 0)
GOTO(out, capa = ERR_PTR(-EFAULT));
diff --git
a/lustre/mdt/mdt_handler.c
b/lustre/mdt/mdt_handler.c
index
1ca3fdc
..
be65049
100644
(file)
--- a/
lustre/mdt/mdt_handler.c
+++ b/
lustre/mdt/mdt_handler.c
@@
-464,7
+464,7
@@
out:
* will handle this internally, see mdc_interpret_renew_capa.
* body->size is borrowed to store errno.
*/
- body->
size = (__u64)
rc;
+ body->
flags = (__u32)-
rc;
return 0;
}