]> git.neil.brown.name Git - lafs-utils.git/commitdiff
Use cpu_to_le64 for setting timestamp
authorNeilBrown <neilb@suse.de>
Thu, 5 May 2011 06:03:29 +0000 (16:03 +1000)
committerNeilBrown <neilb@suse.de>
Thu, 5 May 2011 06:03:29 +0000 (16:03 +1000)
This isn't really needed for '0', but is a good reminded for
if/when we use real timestamps.

Signed-off-by: NeilBrown <neilb@suse.de>
lib/lafs_cluster_flush.c

index 7118900e3337239b0c4e5c2bb6ada711489ccbdc..27e3cb6e7103e393faf2a249a052fd6c6136a8be 100644 (file)
@@ -147,7 +147,7 @@ static void cluster_addhead(struct lafs_cluster *wc, struct lafs_ino *ino,
        *headstart = gh;
        gh->inum = __cpu_to_le32(ino->inum);
        gh->fsnum = __cpu_to_le32(ino->filesys->inum);
-       gh->timestamp = 0;
+       gh->timestamp = __cpu_to_le64(0);
        tnf = ((ino->generation<<8) | (ino->trunc_gen & 0xff))
                & 0x7fff;
        if (cnum)