]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ext4: ext4_mkdir should dirty dir_block with newly created directory inode
authorDarrick J. Wong <djwong@us.ibm.com>
Wed, 31 Aug 2011 16:00:51 +0000 (12:00 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 31 Aug 2011 16:00:51 +0000 (12:00 -0400)
commit7f73fddcb82774451c454052471f692e60e214c3
treea7bb496f63a0b65e8edbdc72b596f64dd9ecc1b6
parente4c97c31a167a0b0b2a074fb877aedfa1781b779
ext4: ext4_mkdir should dirty dir_block with newly created directory inode

ext4_mkdir calls ext4_handle_dirty_metadata with dir_block and the inode "dir".
Unfortunately, dir_block belongs to the newly created directory (which is
"inode"), not the parent directory (which is "dir").  Fix the incorrect
association.

Signed-off-by: Darrick J. Wong <djwong@us.ibm.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Cc: stable@kernel.org
fs/ext4/namei.c