ext4: Fix BUG_ON at fs/buffer.c:652 in no journal mode
commit7085239d9d0eb35533f9ec824346ea09143a3ab3
authorCurt Wohlgemuth <curtw@google.com>
Mon, 31 May 2010 02:49:28 +0000 (30 22:49 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 2 Aug 2010 17:21:12 +0000 (2 10:21 -0700)
tree42d01a49cb0a66d352d31a5f949e4229f293121b
parent884aefaa8bbc07cdce4e77637f810cdab5940957
ext4: Fix BUG_ON at fs/buffer.c:652 in no journal mode

commit 73b50c1c92666d326b5fa2c945d46509f2f6d91f upstream (as of v2.6.33-git11)

Calls to ext4_handle_dirty_metadata should only pass in an inode
pointer for inode-specific metadata, and not for shared metadata
blocks such as inode table blocks, block group descriptors, the
superblock, etc.

The BUG_ON can get tripped when updating a special device (such as a
block device) that is opened (so that i_mapping is set in
fs/block_dev.c) and the file system is mounted in no journal mode.

Addresses-Google-Bug: #2404870

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/ext4_jbd2.c
fs/ext4/ialloc.c
fs/ext4/inode.c
fs/ext4/namei.c