summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorGeliang Tang <geliangtang@163.com>2016-01-01 22:06:29 +0800
committerJ. Bruce Fields <bfields@redhat.com>2016-01-07 10:10:50 -0500
commitea44463f376236a0541288cb8d575ab6b50370d2 (patch)
tree3c8a9d2c64d8c986f68d95408139f9bdb04e4b85 /fs
parent2e55f3ab45a0ef2e41548eae64e13b4bf39e5374 (diff)
downloadlinux-ea44463f376236a0541288cb8d575ab6b50370d2.tar.bz2
lockd: use to_delayed_work
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>
Diffstat (limited to 'fs')
-rw-r--r--fs/lockd/svc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/lockd/svc.c b/fs/lockd/svc.c
index 44d18ad4d364..b4006c720f55 100644
--- a/fs/lockd/svc.c
+++ b/fs/lockd/svc.c
@@ -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);