* [PATCH] xfs: log timestamp changes to the source inode in rename
@ 2010-12-07 10:16 Christoph Hellwig
2010-12-09 10:36 ` Dave Chinner
0 siblings, 1 reply; 2+ messages in thread
From: Christoph Hellwig @ 2010-12-07 10:16 UTC (permalink / raw)
To: xfs
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>
Index: xfs/fs/xfs/xfs_rename.c
===================================================================
--- xfs.orig/fs/xfs/xfs_rename.c 2010-12-07 11:05:15.661253391 +0100
+++ xfs/fs/xfs/xfs_rename.c 2010-12-07 11:05:25.139275042 +0100
@@ -297,6 +297,7 @@ xfs_rename(
* it and some incremental backup programs won't work without it.
*/
xfs_trans_ichgtime(tp, src_ip, XFS_ICHGTIME_CHG);
+ xfs_trans_log_inode(tp, src_ip, XFS_ILOG_CORE);
/*
* Adjust the link count on src_dp. This is necessary when
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] xfs: log timestamp changes to the source inode in rename
2010-12-07 10:16 [PATCH] xfs: log timestamp changes to the source inode in rename Christoph Hellwig
@ 2010-12-09 10:36 ` Dave Chinner
0 siblings, 0 replies; 2+ messages in thread
From: Dave Chinner @ 2010-12-09 10:36 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: xfs
On Tue, Dec 07, 2010 at 05:16:41AM -0500, Christoph Hellwig wrote:
> 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>
Looks good.
Reviewed-by: Dave Chinner <dchinner@redhat.com>
--
Dave Chinner
david@fromorbit.com
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-12-09 10:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-07 10:16 [PATCH] xfs: log timestamp changes to the source inode in rename Christoph Hellwig
2010-12-09 10:36 ` Dave Chinner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox