]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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>
Tue, 16 Aug 2011 13:45:40 +0000 (16:45 +0300)
commita25dbe6fd7f1fb6e49222b9028f64b2218123a4f
tree900a76eb5ce49ba26840290b0b092d88f675fc69
parent64b541856e7ed0fe6a8bcd6bb646b23902e4c4a4
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