mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-28 14:44:10 +08:00
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:
parent
3daa020f9b
commit
2e55f3ab45
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user