]> git.baikalelectronics.ru Git - kernel.git/commit
[jffs2] kill wbuf_queued/wbuf_dwork_lock
authorAl Viro <viro@ZenIV.linux.org.uk>
Fri, 1 Aug 2014 19:13:40 +0000 (20:13 +0100)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 9 Oct 2014 06:39:01 +0000 (02:39 -0400)
commit9b07ec315d728de0f667da9213155789a04459f6
treece3dca2597219e4e0cd7fe4e308e634c86613263
parentc28fcff0a0c12f81b9f50e772a7edd3b5ad37959
[jffs2] kill wbuf_queued/wbuf_dwork_lock

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>
Cc: stable@vger.kernel.org
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/jffs2/jffs2_fs_sb.h
fs/jffs2/wbuf.c