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

limit inode number within 2^32

lustre/llite/llite_fid.c

index cc9d286..15c4021 100644 (file)
@@ -69,7 +69,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(fid);
+        ino = fid_flatten(fid) & 0xFFFFFFFF;
 
         if (unlikely(ino == 0))
                 /* the first result ino is 0xFFC001, so this is rarely used */