Skip to content

Commit 2e55f3a

Browse files
geliangtangJ. Bruce Fields
authored andcommitted
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>
1 parent 3daa020 commit 2e55f3a

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎fs/nfsd/nfs4state.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4571,8 +4571,7 @@ static void
45714571
laundromat_main(struct work_struct *laundry)
45724572
{
45734573
time_t t;
4574-
struct delayed_work *dwork = container_of(laundry, struct delayed_work,
4575-
work);
4574+
struct delayed_work *dwork = to_delayed_work(laundry);
45764575
struct nfsd_net *nn = container_of(dwork, struct nfsd_net,
45774576
laundromat_work);
45784577

0 commit comments

Comments
 (0)