projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e55f3a
)
lockd: use to_delayed_work
author
Geliang Tang
<geliangtang@163.com>
Fri, 1 Jan 2016 14:06:29 +0000
(22:06 +0800)
committer
J. Bruce Fields
<bfields@redhat.com>
Thu, 7 Jan 2016 15:10:50 +0000
(10:10 -0500)
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>
fs/lockd/svc.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/lockd/svc.c
b/fs/lockd/svc.c
index 44d18ad4d364c1b1089526801d6db651da02d510..b4006c720f553c135085b69113b70463e72622a4 100644
(file)
--- a/
fs/lockd/svc.c
+++ b/
fs/lockd/svc.c
@@
-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);