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>
This commit is contained in:
Geliang Tang 2016-01-01 22:06:28 +08:00 committed by J. Bruce Fields
parent 3daa020f9b
commit 2e55f3ab45

View File

@ -4571,8 +4571,7 @@ static void
laundromat_main(struct work_struct *laundry) laundromat_main(struct work_struct *laundry)
{ {
time_t t; time_t t;
struct delayed_work *dwork = container_of(laundry, struct delayed_work, struct delayed_work *dwork = to_delayed_work(laundry);
work);
struct nfsd_net *nn = container_of(dwork, struct nfsd_net, struct nfsd_net *nn = container_of(dwork, struct nfsd_net,
laundromat_work); laundromat_work);