提交 ea44463f 编写于 作者: G Geliang Tang 提交者: J. Bruce Fields

lockd: use to_delayed_work

Use to_delayed_work() instead of open-coding it.
Signed-off-by: NGeliang Tang <geliangtang@163.com>
Signed-off-by: NJ. Bruce Fields <bfields@redhat.com>
上级 2e55f3ab
...@@ -94,8 +94,7 @@ static unsigned long get_lockd_grace_period(void) ...@@ -94,8 +94,7 @@ static unsigned long get_lockd_grace_period(void)
static void grace_ender(struct work_struct *grace) static void grace_ender(struct work_struct *grace)
{ {
struct delayed_work *dwork = container_of(grace, struct delayed_work, struct delayed_work *dwork = to_delayed_work(grace);
work);
struct lockd_net *ln = container_of(dwork, struct lockd_net, struct lockd_net *ln = container_of(dwork, struct lockd_net,
grace_period_end); grace_period_end);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册