Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LU-9679 modules: use list_move were appropriate.
[fs/lustre-release.git]
/
lnet
/
utils
/
lst.c
diff --git
a/lnet/utils/lst.c
b/lnet/utils/lst.c
index
36c6649
..
cd3a6cd
100644
(file)
--- a/
lnet/utils/lst.c
+++ b/
lnet/utils/lst.c
@@
-1808,11
+1808,9
@@
lst_print_stat(char *name, struct list_head *resultp,
break;
}
break;
}
- list_del(&new->rpe_link);
- list_add_tail(&new->rpe_link, &tmp[idx]);
+ list_move_tail(&new->rpe_link, &tmp[idx]);
- list_del(&old->rpe_link);
- list_add_tail(&old->rpe_link, &tmp[1 - idx]);
+ list_move_tail(&old->rpe_link, &tmp[1 - idx]);
if (new->rpe_rpc_errno != 0 || new->rpe_fwk_errno != 0 ||
old->rpe_rpc_errno != 0 || old->rpe_fwk_errno != 0) {
if (new->rpe_rpc_errno != 0 || new->rpe_fwk_errno != 0 ||
old->rpe_rpc_errno != 0 || old->rpe_fwk_errno != 0) {