projects
/
platform
/
kernel
/
linux-rpi3.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b64e88
)
dm cache policy mq: use list_del_init instead of list_del + INIT_LIST_HEAD
author
Wei Yongjun
<yongjun_wei@trendmicro.com.cn>
Mon, 18 Nov 2013 18:32:43 +0000
(13:32 -0500)
committer
Mike Snitzer
<snitzer@redhat.com>
Tue, 7 Jan 2014 15:14:32 +0000
(10:14 -0500)
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-cache-policy-mq.c
patch
|
blob
|
history
diff --git
a/drivers/md/dm-cache-policy-mq.c
b/drivers/md/dm-cache-policy-mq.c
index
64780ad
..
7f1aaa3
100644
(file)
--- 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++;