From: NeilBrown Date: Thu, 5 May 2011 06:03:29 +0000 (+1000) Subject: Use cpu_to_le64 for setting timestamp X-Git-Url: http://git.neil.brown.name/?a=commitdiff_plain;h=2774c4dc6a04c676f71089e01dad4b00d8b7d457;p=lafs-utils.git Use cpu_to_le64 for setting timestamp This isn't really needed for '0', but is a good reminded for if/when we use real timestamps. Signed-off-by: NeilBrown --- diff --git a/lib/lafs_cluster_flush.c b/lib/lafs_cluster_flush.c index 7118900..27e3cb6 100644 --- a/lib/lafs_cluster_flush.c +++ b/lib/lafs_cluster_flush.c @@ -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)