]> 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)
commitcbc5b6fbe6b1262efc9eb2ecd5a66aa4478ce635
tree1be7d1fd57a54bb632366215c6ad42959b832353
parent08551212519cf43850ec82babd83d556e4b42416
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