summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeliang Tang <geliangtang@163.com>2016-01-01 22:06:28 +0800
committerJ. Bruce Fields <bfields@redhat.com>2016-01-07 10:10:49 -0500
commit2e55f3ab45a0ef2e41548eae64e13b4bf39e5374 (patch)
tree5f109a9d58b68d544a1e5336e7346f40d8904016
parent3daa020f9bf803c03c6b6c895921e2b09fcd494a (diff)
downloadop-kernel-dev-2e55f3ab45a0ef2e41548eae64e13b4bf39e5374.zip
op-kernel-dev-2e55f3ab45a0ef2e41548eae64e13b4bf39e5374.tar.gz
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>
-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 113ecbf..086a81c 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);
OpenPOWER on IntegriCloud