jffs2: use mutex_is_locked() in __jffs2_flush_wbuf()
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Mon, 27 Jun 2011 20:21:30 +0000 (00:21 +0400)
committerArtem Bityutskiy <artem.bityutskiy@intel.com>
Sun, 11 Sep 2011 12:02:14 +0000 (15:02 +0300)
commit51b11e3630672b7ce8793ecf13e5759656edf38a
tree90b22e023e1120b475adbb6153283e16eaf6f932
parent9786f6e68af00d0988ad7f51fe3fd118be1c30ad
jffs2: use mutex_is_locked() in __jffs2_flush_wbuf()

Use a helper to test if a mutex is held instead of a hack with
mutex_trylock().

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: Artem Bityutskiy <dedekind1@gmail.com>
fs/jffs2/wbuf.c