[JFFS2] Locking issues in summary write code.
authorDavid Woodhouse <dwmw2@infradead.org>
Sun, 21 May 2006 12:15:59 +0000 (13:15 +0100)
committerDavid Woodhouse <dwmw2@infradead.org>
Sun, 21 May 2006 12:15:59 +0000 (13:15 +0100)
commit010b06d6d07d9fa5ea6070aa72bb3e0de1761ab7
tree96c6ceddfec1aa6ddcdd0efcb39f903b284203c2
parent9167e0f811cbe28564c44a99c2f07b0ce5b368cf
[JFFS2] Locking issues in summary write code.

We can't use jffs2_scan_dirty_space() because it doesn't do any locking; it's
only for use at scan time -- hence the 'scan' in the name.

Also, don't allocate refs while we have c->erase_completion_lock held.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
fs/jffs2/summary.c