Whamcloud - gitweb
LU-2835 ptlrpc: Fix race during exp_flock_hash creation
[fs/lustre-release.git] / lustre / utils / ll_recover_lost_found_objs.c
index 9c8d831..cb085aa 100644 (file)
@@ -27,7 +27,7 @@
  * Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
  * Use is subject to license terms.
  *
- * Copyright (c) 2012, Intel Corporation.
+ * Copyright (c) 2012, 2013, Intel Corporation.
  */
 /*
  * This file is part of Lustre, http://www.lustre.org/
@@ -332,11 +332,11 @@ static int traverse_lost_found(char *src_dir, const char *mount_path)
                        ff_objid = le64_to_cpu(ff.ff_objid);
                } else {
                        ff_seq = le64_to_cpu(lma.lma_self_fid.f_seq);
-                       ff_objid = le64_to_cpu(lma.lma_self_fid.f_oid);
+                       ff_objid = le32_to_cpu(lma.lma_self_fid.f_oid);
                }
 
                sprintf(seq_name, (fid_seq_is_rsvd(ff_seq) ||
-                       fid_seq_is_mdt0(ff_seq)) ?  LPU64 : LPX64i,
+                                  fid_seq_is_mdt0(ff_seq)) ? LPU64 : LPX64i,
                        fid_seq_is_idif(ff_seq) ? 0 : ff_seq);