Whamcloud - gitweb
Branch b1_8_gate
authorhuanghua <huanghua>
Wed, 20 Aug 2008 03:48:49 +0000 (03:48 +0000)
committerhuanghua <huanghua>
Wed, 20 Aug 2008 03:48:49 +0000 (03:48 +0000)
b=16248
i=yury.umanets
i=nikita.danilov
i=oleg.drokin

limit inode number within 2^32

lustre/llite/namei.c

index 5980bc1..a49b9ab 100644 (file)
@@ -85,7 +85,7 @@ ino_t ll_fid_build_ino(struct ll_sb_info *sbi,
          * Very stupid and having many downsides inode allocation algorithm
          * based on fid.
          */
-        ino = fid_flatten((struct lu_fid*)fid);
+        ino = fid_flatten((struct lu_fid*)fid) & 0xFFFFFFFF;
 
         if (unlikely(ino == 0))
                 /* the first result ino is 0xFFC001, so this is rarely used */