Whamcloud - gitweb
LU-4472 mdc: Fix mdc_page_locate ASSERT
[fs/lustre-release.git] / lustre / mdc / mdc_internal.h
index cc2816b..a49e9cd 100644 (file)
@@ -179,10 +179,7 @@ static inline unsigned long hash_x_index(__u64 hash, int hash64)
        if (BITS_PER_LONG == 32 && hash64)
                hash >>= 32;
 #endif
-       /* save hash 0 as index 0 because otherwise we'll save it at
-        * page index end (~0UL) and it causes truncate_inode_pages_range()
-        * to loop forever.
-        */
+       /* save hash 0 with hash 1 */
        return ~0UL - (hash + !hash);
 }