UBIFS: optimize deletions
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Tue, 22 Jul 2008 10:06:20 +0000 (13:06 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Wed, 13 Aug 2008 08:28:44 +0000 (11:28 +0300)
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
checks that condition and avoids writing the deletion inode for
the second time.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>

No differences found