]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ext4: Avoid updating the inode table bh twice in no journal mode
authorFrank Mayhar <fmayhar@google.com>
Tue, 29 Sep 2009 14:07:47 +0000 (10:07 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 14 Dec 2009 16:07:07 +0000 (08:07 -0800)
commit46d67b3c075b0d1630b57630f956edb1dad61baa
tree7661f1f2e58618f8da780c9a021e0b9c7248bfb7
parentca23b5fd5bd6fd09e90008f9390cff248e01b718
ext4: Avoid updating the inode table bh twice in no journal mode

(cherry picked from commit 830156c79b0a99ddf0f62496bcf4de640f9f52cd)

This is a cleanup of commit 91ac6f4.  Since ext4_mark_inode_dirty()
has already called ext4_mark_iloc_dirty(), which in turn calls
ext4_do_update_inode(), it's not necessary to have ext4_write_inode()
call ext4_do_update_inode() in no journal mode.  Indeed, it would be
duplicated work.

Reviewed-by: "Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Frank Mayhar <fmayhar@google.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/ext4/inode.c