Skip to content

Commit ea44463

Browse files
geliangtangJ. Bruce Fields
authored andcommitted
lockd: 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 2e55f3a commit ea44463

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎fs/lockd/svc.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,7 @@ static unsigned long get_lockd_grace_period(void)
9494

9595
static void grace_ender(struct work_struct *grace)
9696
{
97-
struct delayed_work *dwork = container_of(grace, struct delayed_work,
98-
work);
97+
struct delayed_work *dwork = to_delayed_work(grace);
9998
struct lockd_net *ln = container_of(dwork, struct lockd_net,
10099
grace_period_end);
101100

0 commit comments

Comments
 (0)