Whamcloud - gitweb
Branch: b_new_cmd
authorwangdi <wangdi>
Mon, 23 Oct 2006 09:11:02 +0000 (09:11 +0000)
committerwangdi <wangdi>
Mon, 23 Oct 2006 09:11:02 +0000 (09:11 +0000)
fix typo here, we should use BE for rec in iam

lustre/osd/osd_oi.c

index 0494c3b..0d7e4d7 100644 (file)
@@ -145,8 +145,8 @@ enum {
 static inline void osd_inode_id_init(struct osd_inode_id *id,
                                      __u64 ino, __u32 gen)
 {
-        id->oii_ino = be64_to_cpu(ino);
-        id->oii_gen = be32_to_cpu(gen);
+        id->oii_ino = cpu_to_be64(ino);
+        id->oii_gen = cpu_to_be32(gen);
 }
 
 /*