UBIFS: optimize deletions
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Tue, 22 Jul 2008 10:06:20 +0000 (13:06 +0300)
committerGrazvydas Ignotas <notasas@gmail.com>
Mon, 25 May 2009 14:08:50 +0000 (17:08 +0300)
commitf9a9e9bba586836a164108b6a10dc2cdb506c9de
tree4be3050904dfc8a935c04d3fd840dfa8803c21a2
parentde8edf3ff437e8d5d76616fcf3820add3a490c13
UBIFS: optimize deletions

Every time anything is deleted, UBIFS writes the deletion inode
node twice - once in 'ubifs_jnl_update()' and the second time in
'ubifs_jnl_write_inode()'. However, the second write is not needed
if no commit happened after 'ubifs_jnl_update()'. This patch
checke that condition and avoids writing the deletion inode for
the second time.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
fs/ubifs/journal.c
fs/ubifs/super.c
fs/ubifs/ubifs.h