diff options
author | Geliang Tang <geliangtang@163.com> | 2016-01-01 09:06:28 -0500 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2016-01-07 10:10:49 -0500 |
commit | 2e55f3ab45a0ef2e41548eae64e13b4bf39e5374 (patch) | |
tree | 5f109a9d58b68d544a1e5336e7346f40d8904016 /fs/nfsd/nfs4state.c | |
parent | 3daa020f9bf803c03c6b6c895921e2b09fcd494a (diff) |
nfsd: 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/nfsd/nfs4state.c')
-rw-r--r-- | fs/nfsd/nfs4state.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c index 113ecbfac25c..086a81ce34fc 100644 --- a/fs/nfsd/nfs4state.c +++ b/fs/nfsd/nfs4state.c | |||
@@ -4571,8 +4571,7 @@ static void | |||
4571 | laundromat_main(struct work_struct *laundry) | 4571 | laundromat_main(struct work_struct *laundry) |
4572 | { | 4572 | { |
4573 | time_t t; | 4573 | time_t t; |
4574 | struct delayed_work *dwork = container_of(laundry, struct delayed_work, | 4574 | struct delayed_work *dwork = to_delayed_work(laundry); |
4575 | work); | ||
4576 | struct nfsd_net *nn = container_of(dwork, struct nfsd_net, | 4575 | struct nfsd_net *nn = container_of(dwork, struct nfsd_net, |
4577 | laundromat_work); | 4576 | laundromat_work); |
4578 | 4577 | ||