summaryrefslogtreecommitdiff
path: root/fs/nfsd
diff options
context:
space:
mode:
authorGeliang Tang <geliangtang@163.com>2016-01-01 17:06:28 +0300
committerJ. Bruce Fields <bfields@redhat.com>2016-01-07 18:10:49 +0300
commit2e55f3ab45a0ef2e41548eae64e13b4bf39e5374 (patch)
tree5f109a9d58b68d544a1e5336e7346f40d8904016 /fs/nfsd
parent3daa020f9bf803c03c6b6c895921e2b09fcd494a (diff)
downloadlinux-2e55f3ab45a0ef2e41548eae64e13b4bf39e5374.tar.xz
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')
-rw-r--r--fs/nfsd/nfs4state.c3
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
laundromat_main(struct work_struct *laundry)
{
time_t t;
- struct delayed_work *dwork = container_of(laundry, struct delayed_work,
- work);
+ struct delayed_work *dwork = to_delayed_work(laundry);
struct nfsd_net *nn = container_of(dwork, struct nfsd_net,
laundromat_work);