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:29 +08:00 коммит произвёл J. Bruce Fields
Родитель 2e55f3ab45
Коммит ea44463f37
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -94,8 +94,7 @@ static unsigned long get_lockd_grace_period(void)
static void grace_ender(struct work_struct *grace)
{
struct delayed_work *dwork = container_of(grace, struct delayed_work,
work);
struct delayed_work *dwork = to_delayed_work(grace);
struct lockd_net *ln = container_of(dwork, struct lockd_net,
grace_period_end);