lockd: use to_delayed_work
authorGeliang Tang <geliangtang@163.com>
Fri, 1 Jan 2016 14:06:29 +0000 (22:06 +0800)
committerJ. Bruce Fields <bfields@redhat.com>
Thu, 7 Jan 2016 15:10:50 +0000 (10:10 -0500)
Use to_delayed_work() instead of open-coding it.

Signed-off-by: Geliang Tang <geliangtang@163.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/lockd/svc.c

index 44d18ad4d364c1b1089526801d6db651da02d510..b4006c720f553c135085b69113b70463e72622a4 100644 (file)
@@ -94,8 +94,7 @@ static unsigned long get_lockd_grace_period(void)
 
 static void grace_ender(struct work_struct *grace)
 {
-       struct delayed_work *dwork = container_of(grace, struct delayed_work,
-                                                 work);
+       struct delayed_work *dwork = to_delayed_work(grace);
        struct lockd_net *ln = container_of(dwork, struct lockd_net,
                                            grace_period_end);
 
This page took 0.026048 seconds and 5 git commands to generate.