]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ext4: Make sure ext4_dirty_inode() updates the inode in no journal mode
authorCurt Wohlgemuth <curtw@google.com>
Tue, 29 Sep 2009 20:06:01 +0000 (16:06 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 14 Dec 2009 16:07:08 +0000 (08:07 -0800)
commit94ab12a2649b1e86677771d310a20752ba5b1542
tree9dbcfa62e280baf841381428a7e59d5fa5b3666b
parent46d67b3c075b0d1630b57630f956edb1dad61baa
ext4: Make sure ext4_dirty_inode() updates the inode in no journal mode

(cherry picked from commit f3dc272fd5e2ae08244796bb39e7e1ce4b25d3b3)

This patch a problem that ext4_dirty_inode() was not calling
ext4_mark_inode_dirty() if the current_handle is not valid, which it
is the case in no journal mode.

It also removes a test for non-matching transaction which can never
happen.

Signed-off-by: Curt Wohlgemuth <curtw@google.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/ext4/inode.c