]> 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>
Mon, 22 Aug 2011 18:54:53 +0000 (14:54 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 22 Aug 2011 18:54:53 +0000 (14:54 -0400)
commite8180b5b8846f7d9b01f0e2716a0b0c877453fd3
tree446fd6c10598e49bc1b7a780d76bd08a573800ee
parent105b65402fb8bdcf8d083a37fa05f3987851968c
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