]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ext4: call ext4_handle_dirty_metadata with correct inode in ext4_dx_add_entry
authorTheodore Ts'o <tytso@mit.edu>
Mon, 22 Aug 2011 18:56:53 +0000 (14:56 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 22 Aug 2011 18:56:53 +0000 (14:56 -0400)
commit6adbd7b95949eb5eb81b74c5e982d5ae7d799c58
treee511200af1f35ccf2485b73e1778caa7e78ae3d8
parente8180b5b8846f7d9b01f0e2716a0b0c877453fd3
ext4: call ext4_handle_dirty_metadata with correct inode in ext4_dx_add_entry

ext4_dx_add_entry manipulates bh2 and frames[0].bh, which are two buffer_heads
that point to directory blocks assigned to the directory inode.  However, the
function calls ext4_handle_dirty_metadata with the inode of the file that's
being added to the directory, not the directory inode itself.  Therefore,
correct the code to dirty the directory buffers with the directory inode, not
the file inode.

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