From: Artem Bityutskiy Date: Tue, 22 Jul 2008 10:06:20 +0000 (+0300) Subject: UBIFS: optimize deletions X-Git-Tag: v2.6.27-rc4~65^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de94eb558b542873d3f6f9ede1b8575fb5662248;p=pandora-kernel.git 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 checks that condition and avoids writing the deletion inode for the second time. Signed-off-by: Artem Bityutskiy --- Reading git-diff-tree failed