* [PATCH -next] dm cache policy mq:: use list_del_init instead of list_del/INIT_LIST_HEAD
@ 2013-11-15 9:47 Wei Yongjun
2013-11-15 10:58 ` [dm-devel] " Joe Thornber
0 siblings, 1 reply; 2+ messages in thread
From: Wei Yongjun @ 2013-11-15 9:47 UTC (permalink / raw)
To: agk, snitzer, neilb; +Cc: yongjun_wei, dm-devel, linux-raid
From: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Using list_del_init() instead of list_del() + INIT_LIST_HEAD().
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
---
drivers/md/dm-cache-policy-mq.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/md/dm-cache-policy-mq.c b/drivers/md/dm-cache-policy-mq.c
index 7209fab..ac7d3b3 100644
--- a/drivers/md/dm-cache-policy-mq.c
+++ b/drivers/md/dm-cache-policy-mq.c
@@ -287,9 +287,8 @@ static struct entry *alloc_entry(struct entry_pool *ep)
static struct entry *alloc_particular_entry(struct entry_pool *ep, dm_cblock_t cblock)
{
struct entry *e = ep->entries + from_cblock(cblock);
- list_del(&e->list);
- INIT_LIST_HEAD(&e->list);
+ list_del_init(&e->list);
INIT_HLIST_NODE(&e->hlist);
ep->nr_allocated++;
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [dm-devel] [PATCH -next] dm cache policy mq:: use list_del_init instead of list_del/INIT_LIST_HEAD
2013-11-15 9:47 [PATCH -next] dm cache policy mq:: use list_del_init instead of list_del/INIT_LIST_HEAD Wei Yongjun
@ 2013-11-15 10:58 ` Joe Thornber
0 siblings, 0 replies; 2+ messages in thread
From: Joe Thornber @ 2013-11-15 10:58 UTC (permalink / raw)
To: device-mapper development; +Cc: agk, snitzer, neilb, linux-raid, yongjun_wei
ACK
On Fri, Nov 15, 2013 at 05:47:12PM +0800, Wei Yongjun wrote:
> From: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
>
> Using list_del_init() instead of list_del() + INIT_LIST_HEAD().
>
> Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
> ---
> drivers/md/dm-cache-policy-mq.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/md/dm-cache-policy-mq.c b/drivers/md/dm-cache-policy-mq.c
> index 7209fab..ac7d3b3 100644
> --- a/drivers/md/dm-cache-policy-mq.c
> +++ b/drivers/md/dm-cache-policy-mq.c
> @@ -287,9 +287,8 @@ static struct entry *alloc_entry(struct entry_pool *ep)
> static struct entry *alloc_particular_entry(struct entry_pool *ep, dm_cblock_t cblock)
> {
> struct entry *e = ep->entries + from_cblock(cblock);
> - list_del(&e->list);
>
> - INIT_LIST_HEAD(&e->list);
> + list_del_init(&e->list);
> INIT_HLIST_NODE(&e->hlist);
> ep->nr_allocated++;
>
>
> --
> dm-devel mailing list
> dm-devel@redhat.com
> https://www.redhat.com/mailman/listinfo/dm-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-11-15 10:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-15 9:47 [PATCH -next] dm cache policy mq:: use list_del_init instead of list_del/INIT_LIST_HEAD Wei Yongjun
2013-11-15 10:58 ` [dm-devel] " Joe Thornber
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).