Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Geliang Tang and committed by
J. Bruce Fields
ea44463f 2e55f3ab

+1 -2
+1 -2
fs/lockd/svc.c
··· 94 94 95 95 static void grace_ender(struct work_struct *grace) 96 96 { 97 - struct delayed_work *dwork = container_of(grace, struct delayed_work, 98 - work); 97 + struct delayed_work *dwork = to_delayed_work(grace); 99 98 struct lockd_net *ln = container_of(dwork, struct lockd_net, 100 99 grace_period_end); 101 100