Mingming Cao wrote:
This patch is on top of i_version_update_vfs.
The i_version field of the inode is set on inode creation and incremented when
the inode is being modified.
ta));
        ei->i_dir_start_lookup = 0;
Index: linux-2.6.22-rc4/fs/ext4/inode.c
===================================================================
--- linux-2.6.22-rc4.orig/fs/ext4/inode.c       2007-06-13 17:21:29.000000000 
-0700
+++ linux-2.6.22-rc4/fs/ext4/inode.c    2007-06-13 17:24:45.000000000 -0700
@@ -3082,6 +3082,7 @@ int ext4_mark_iloc_dirty(handle_t *handl
 {
        int err = 0;

+       inode->i_version++;
        /* the do_update_inode consumes one bh->b_count */
        get_bh(iloc->bh);


If we bump i_version  in ext4_mark_iloc_dity then we should be removing the 
i_version update
at other places. A simple grep of ext4 dir shows i_version being updated followed by ext4_mark_inode_dirty.


-aneesh
-
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to