> @@ -5729,6 +5744,7 @@ static struct inode *btrfs_new_inode(struct 
> btrfs_trans_handle *trans,
>       struct btrfs_path *path;
>       struct btrfs_inode_ref *ref;
>       struct btrfs_key key[2];
> +     struct timespec current_time;
>       u32 sizes[2];
>       int nitems = name ? 2 : 1;
>       unsigned long ptr;
> @@ -5824,7 +5840,13 @@ static struct inode *btrfs_new_inode(struct 
> btrfs_trans_handle *trans,
>  
>       inode_init_owner(inode, dir, mode);
>       inode_set_bytes(inode, 0);
> -     inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME;
> +
> +     current_time = CURRENT_TIME;
> +     inode->i_mtime = current_time;
> +     inode->i_atime = current_time;
> +     inode->i_ctime = current_time;
> +     BTRFS_I(inode)->i_otime = current_time;

I might have just set mtime to CURRENT_TIME then the rest to mtime.
It'd be a touch less noisy.  Author's choice, though :).

Any plans to add it to send/recv?

766702ef (Alexander Block           2012-07-28 14:11:31 +0200 2480)
        /* TODO Add otime support when the otime patches get into upstream */

- z
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to