提交 6b70f7df 编写于 作者: J Joonsoo Kim 提交者: Linus Torvalds

mm, vmalloc: remove useless variable in vmap_block

vbq in vmap_block isn't used. So remove it.
Signed-off-by: NJoonsoo Kim <iamjoonsoo.kim@lge.com>
Reviewed-by: NWanpeng Li <liwanp@linux.vnet.ibm.com>
Acked-by: NJohannes Weiner <hannes@cmpxchg.org>
Acked-by: NZhang Yanfei <zhangyanfei@cn.fujitsu.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 fbc2edb0
...@@ -752,7 +752,6 @@ struct vmap_block_queue { ...@@ -752,7 +752,6 @@ struct vmap_block_queue {
struct vmap_block { struct vmap_block {
spinlock_t lock; spinlock_t lock;
struct vmap_area *va; struct vmap_area *va;
struct vmap_block_queue *vbq;
unsigned long free, dirty; unsigned long free, dirty;
DECLARE_BITMAP(dirty_map, VMAP_BBMAP_BITS); DECLARE_BITMAP(dirty_map, VMAP_BBMAP_BITS);
struct list_head free_list; struct list_head free_list;
...@@ -830,7 +829,6 @@ static struct vmap_block *new_vmap_block(gfp_t gfp_mask) ...@@ -830,7 +829,6 @@ static struct vmap_block *new_vmap_block(gfp_t gfp_mask)
radix_tree_preload_end(); radix_tree_preload_end();
vbq = &get_cpu_var(vmap_block_queue); vbq = &get_cpu_var(vmap_block_queue);
vb->vbq = vbq;
spin_lock(&vbq->lock); spin_lock(&vbq->lock);
list_add_rcu(&vb->free_list, &vbq->free); list_add_rcu(&vb->free_list, &vbq->free);
spin_unlock(&vbq->lock); spin_unlock(&vbq->lock);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册