xfs: log timestamp changes to the source inode in rename
authorChristoph Hellwig <hch@infradead.org>
Tue, 7 Dec 2010 10:16:41 +0000 (10:16 +0000)
committerAlex Elder <aelder@sgi.com>
Thu, 9 Dec 2010 23:07:02 +0000 (17:07 -0600)
commit05340d4ab2ec2b6b4962c1c41c6ea8fb550f947b
tree9368b1f2e39ef219898bf32a7a2673d85720740d
parentc76febef574fd86566bbdf1a73a547a439115c25
xfs: log timestamp changes to the source inode in rename

Now that we don't mark VFS inodes dirty anymore for internal
timestamp changes, but rely on the transaction subsystem to push
them out, we need to explicitly log the source inode in rename after
updating it's timestamps to make sure the changes actually get
forced out by sync/fsync or an AIL push.

We already account for the fourth inode in the log reservation, as a
rename of directories needs to update the nlink field, so just
adding the xfs_trans_log_inode call is enough.

This fixes the xfsqa 065 regression introduced by:

"xfs: don't use vfs writeback for pure metadata modifications"

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Alex Elder <aelder@sgi.com>
fs/xfs/xfs_rename.c