]> 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)
commit377f9b45ea4006b56fd9e4b8f46c41d9baf0f7eb
tree0f0560e6ee4d6e52021c6c55c5827a9a2ba298ee
parentcbc5b6fbe6b1262efc9eb2ecd5a66aa4478ce635
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