[jffs2] kill wbuf_queued/wbuf_dwork_lock

commit 99358a1ca5 upstream.

schedule_delayed_work() happening when the work is already pending is
a cheap no-op.  Don't bother with ->wbuf_queued logics - it's both
broken (cancelling ->wbuf_dwork leaves it set, as spotted by Jeff Harris)
and pointless.  It's cheaper to let schedule_delayed_work() handle that
case.

Reported-by: Jeff Harris <jefftharris@gmail.com>
Tested-by: Jeff Harris <jefftharris@gmail.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
This commit is contained in:
Al Viro 2014-08-01 20:13:40 +01:00 • committed by Luis Henriques
commit e61cf85b39
2 changed files with 2 additions and 17 deletions