projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] ext4: kmalloc to kzalloc
[powerpc.git]
/
ipc
/
util.c
diff --git
a/ipc/util.c
b/ipc/util.c
index
cd8bb14
..
a9b7a22
100644
(file)
--- a/
ipc/util.c
+++ b/
ipc/util.c
@@
-514,6
+514,11
@@
void ipc_rcu_getref(void *ptr)
container_of(ptr, struct ipc_rcu_hdr, data)->refcount++;
}
container_of(ptr, struct ipc_rcu_hdr, data)->refcount++;
}
+static void ipc_do_vfree(struct work_struct *work)
+{
+ vfree(container_of(work, struct ipc_rcu_sched, work));
+}
+
/**
* ipc_schedule_free - free ipc + rcu space
* @head: RCU callback structure for queued work
/**
* ipc_schedule_free - free ipc + rcu space
* @head: RCU callback structure for queued work
@@
-528,7
+533,7
@@
static void ipc_schedule_free(struct rcu_head *head)
struct ipc_rcu_sched *sched =
container_of(&(grace->data[0]), struct ipc_rcu_sched, data[0]);
struct ipc_rcu_sched *sched =
container_of(&(grace->data[0]), struct ipc_rcu_sched, data[0]);
- INIT_WORK(&sched->work,
vfree, sched
);
+ INIT_WORK(&sched->work,
ipc_do_vfree
);
schedule_work(&sched->work);
}
schedule_work(&sched->work);
}