diff options
author | Akinobu Mita <mita@miraclelinux.com> | 2006-06-26 03:24:46 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-26 12:58:18 -0400 |
commit | f116629d03655adaf7832b93b03c99391d09d4a7 (patch) | |
tree | 526f689619817df3c23ab00e3228b4776bde2190 /fs/ocfs2/dlm/dlmthread.c | |
parent | 179e09172ab663b8587ecc46bb18a56a770304a9 (diff) |
[PATCH] fs: use list_move()
This patch converts the combination of list_del(A) and list_add(A, B) to
list_move(A, B) under fs/.
Cc: Ian Kent <raven@themaw.net>
Acked-by: Joel Becker <joel.becker@oracle.com>
Cc: Neil Brown <neilb@cse.unsw.edu.au>
Cc: Hans Reiser <reiserfs-dev@namesys.com>
Cc: Urban Widmark <urban@teststation.com>
Acked-by: David Howells <dhowells@redhat.com>
Acked-by: Mark Fasheh <mark.fasheh@oracle.com>
Signed-off-by: Akinobu Mita <mita@miraclelinux.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/ocfs2/dlm/dlmthread.c')
-rw-r--r-- | fs/ocfs2/dlm/dlmthread.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/ocfs2/dlm/dlmthread.c b/fs/ocfs2/dlm/dlmthread.c index 5be9d14f12cb..44d3b57ae8a8 100644 --- a/fs/ocfs2/dlm/dlmthread.c +++ b/fs/ocfs2/dlm/dlmthread.c | |||
@@ -318,8 +318,7 @@ converting: | |||
318 | 318 | ||
319 | target->ml.type = target->ml.convert_type; | 319 | target->ml.type = target->ml.convert_type; |
320 | target->ml.convert_type = LKM_IVMODE; | 320 | target->ml.convert_type = LKM_IVMODE; |
321 | list_del_init(&target->list); | 321 | list_move_tail(&target->list, &res->granted); |
322 | list_add_tail(&target->list, &res->granted); | ||
323 | 322 | ||
324 | BUG_ON(!target->lksb); | 323 | BUG_ON(!target->lksb); |
325 | target->lksb->status = DLM_NORMAL; | 324 | target->lksb->status = DLM_NORMAL; |
@@ -380,8 +379,7 @@ blocked: | |||
380 | target->ml.type, target->ml.node); | 379 | target->ml.type, target->ml.node); |
381 | 380 | ||
382 | // target->ml.type is already correct | 381 | // target->ml.type is already correct |
383 | list_del_init(&target->list); | 382 | list_move_tail(&target->list, &res->granted); |
384 | list_add_tail(&target->list, &res->granted); | ||
385 | 383 | ||
386 | BUG_ON(!target->lksb); | 384 | BUG_ON(!target->lksb); |
387 | target->lksb->status = DLM_NORMAL; | 385 | target->lksb->status = DLM_NORMAL; |