]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/ext3/hash.c
ecryptfs: remove check for if an array is NULL
[karo-tx-linux.git] / fs / ext3 / hash.c
index d10231ddcf8aa9058d6849a66c855c7fa901b46e..ede315cdf12614ba0520500aac39583083a2034e 100644 (file)
@@ -198,8 +198,8 @@ int ext3fs_dirhash(const char *name, int len, struct dx_hash_info *hinfo)
                return -1;
        }
        hash = hash & ~1;
-       if (hash == (EXT3_HTREE_EOF << 1))
-               hash = (EXT3_HTREE_EOF-1) << 1;
+       if (hash == (EXT3_HTREE_EOF_32BIT << 1))
+               hash = (EXT3_HTREE_EOF_32BIT - 1) << 1;
        hinfo->hash = hash;
        hinfo->minor_hash = minor_hash;
        return 0;