diff options
author | Geliang Tang <geliangtang@163.com> | 2016-01-01 09:06:29 -0500 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2016-01-07 10:10:50 -0500 |
commit | ea44463f376236a0541288cb8d575ab6b50370d2 (patch) | |
tree | 3c8a9d2c64d8c986f68d95408139f9bdb04e4b85 | |
parent | 2e55f3ab45a0ef2e41548eae64e13b4bf39e5374 (diff) |
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>
-rw-r--r-- | fs/lockd/svc.c | 3 |
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) | |||
94 | 94 | ||
95 | static void grace_ender(struct work_struct *grace) | 95 | static void grace_ender(struct work_struct *grace) |
96 | { | 96 | { |
97 | struct delayed_work *dwork = container_of(grace, struct delayed_work, | 97 | struct delayed_work *dwork = to_delayed_work(grace); |
98 | work); | ||
99 | struct lockd_net *ln = container_of(dwork, struct lockd_net, | 98 | struct lockd_net *ln = container_of(dwork, struct lockd_net, |
100 | grace_period_end); | 99 | grace_period_end); |
101 | 100 | ||