* [PATCH] ubi: use list_move_tail instead of list_del/list_add_tail
@ 2012-10-09 6:14 Wei Yongjun
2012-10-09 14:18 ` Richard Weinberger
2012-10-15 15:15 ` Artem Bityutskiy
0 siblings, 2 replies; 5+ messages in thread
From: Wei Yongjun @ 2012-10-09 6:14 UTC (permalink / raw)
To: richard, dedekind1, dwmw2; +Cc: yongjun_wei, linux-mtd, linux-kernel
From: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Using list_move_tail() instead of list_del() + list_add_tail().
dpatch engine is used to auto generate this patch.
(https://github.com/weiyj/dpatch)
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
---
drivers/mtd/ubi/fastmap.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/mtd/ubi/fastmap.c b/drivers/mtd/ubi/fastmap.c
index 1a5f53c..5f540c5 100644
--- a/drivers/mtd/ubi/fastmap.c
+++ b/drivers/mtd/ubi/fastmap.c
@@ -815,8 +815,7 @@ static int ubi_attach_fastmap(struct ubi_device *ubi,
ai->max_sqnum = max_sqnum;
list_for_each_entry_safe(tmp_aeb, _tmp_aeb, &free, u.list) {
- list_del(&tmp_aeb->u.list);
- list_add_tail(&tmp_aeb->u.list, &ai->free);
+ list_move_tail(&tmp_aeb->u.list, &ai->free);
}
/*
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] ubi: use list_move_tail instead of list_del/list_add_tail
2012-10-09 6:14 [PATCH] ubi: use list_move_tail instead of list_del/list_add_tail Wei Yongjun
@ 2012-10-09 14:18 ` Richard Weinberger
2012-10-15 15:15 ` Artem Bityutskiy
1 sibling, 0 replies; 5+ messages in thread
From: Richard Weinberger @ 2012-10-09 14:18 UTC (permalink / raw)
To: Wei Yongjun; +Cc: dedekind1, dwmw2, yongjun_wei, linux-mtd, linux-kernel
Am Tue, 9 Oct 2012 14:14:21 +0800
schrieb Wei Yongjun <weiyj.lk@gmail.com>:
> From: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
>
> Using list_move_tail() instead of list_del() + list_add_tail().
>
> dpatch engine is used to auto generate this patch.
> (https://github.com/weiyj/dpatch)
>
> Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: Richard Weinberger <richard@nod.at>
Thanks,
//richard
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] ubi: use list_move_tail instead of list_del/list_add_tail
@ 2012-10-09 14:18 ` Richard Weinberger
0 siblings, 0 replies; 5+ messages in thread
From: Richard Weinberger @ 2012-10-09 14:18 UTC (permalink / raw)
To: Wei Yongjun; +Cc: linux-mtd, yongjun_wei, dwmw2, linux-kernel, dedekind1
Am Tue, 9 Oct 2012 14:14:21 +0800
schrieb Wei Yongjun <weiyj.lk@gmail.com>:
> From: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
>
> Using list_move_tail() instead of list_del() + list_add_tail().
>
> dpatch engine is used to auto generate this patch.
> (https://github.com/weiyj/dpatch)
>
> Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: Richard Weinberger <richard@nod.at>
Thanks,
//richard
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] ubi: use list_move_tail instead of list_del/list_add_tail
2012-10-09 6:14 [PATCH] ubi: use list_move_tail instead of list_del/list_add_tail Wei Yongjun
@ 2012-10-15 15:15 ` Artem Bityutskiy
2012-10-15 15:15 ` Artem Bityutskiy
1 sibling, 0 replies; 5+ messages in thread
From: Artem Bityutskiy @ 2012-10-15 15:15 UTC (permalink / raw)
To: Wei Yongjun; +Cc: richard, dwmw2, yongjun_wei, linux-mtd, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 416 bytes --]
On Tue, 2012-10-09 at 14:14 +0800, Wei Yongjun wrote:
> From: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
>
> Using list_move_tail() instead of list_del() + list_add_tail().
>
> dpatch engine is used to auto generate this patch.
> (https://github.com/weiyj/dpatch)
>
> Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Pushed to linux-ubi.git, thanks!
--
Best Regards,
Artem Bityutskiy
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] ubi: use list_move_tail instead of list_del/list_add_tail
@ 2012-10-15 15:15 ` Artem Bityutskiy
0 siblings, 0 replies; 5+ messages in thread
From: Artem Bityutskiy @ 2012-10-15 15:15 UTC (permalink / raw)
To: Wei Yongjun; +Cc: richard, yongjun_wei, dwmw2, linux-kernel, linux-mtd
[-- Attachment #1: Type: text/plain, Size: 416 bytes --]
On Tue, 2012-10-09 at 14:14 +0800, Wei Yongjun wrote:
> From: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
>
> Using list_move_tail() instead of list_del() + list_add_tail().
>
> dpatch engine is used to auto generate this patch.
> (https://github.com/weiyj/dpatch)
>
> Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Pushed to linux-ubi.git, thanks!
--
Best Regards,
Artem Bityutskiy
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-10-15 15:15 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-09 6:14 [PATCH] ubi: use list_move_tail instead of list_del/list_add_tail Wei Yongjun
2012-10-09 14:18 ` Richard Weinberger
2012-10-09 14:18 ` Richard Weinberger
2012-10-15 15:15 ` Artem Bityutskiy
2012-10-15 15:15 ` Artem Bityutskiy
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.