|
@@ -31,19 +31,15 @@
|
|
* so that it will fit. We use hash_64 to convert the value to 31 bits, and
|
|
* so that it will fit. We use hash_64 to convert the value to 31 bits, and
|
|
* then add 1, to ensure that we don't end up with a 0 as the value.
|
|
* then add 1, to ensure that we don't end up with a 0 as the value.
|
|
*/
|
|
*/
|
|
-#if BITS_PER_LONG == 64
|
|
|
|
static inline ino_t
|
|
static inline ino_t
|
|
cifs_uniqueid_to_ino_t(u64 fileid)
|
|
cifs_uniqueid_to_ino_t(u64 fileid)
|
|
{
|
|
{
|
|
|
|
+ if ((sizeof(ino_t)) < (sizeof(u64)))
|
|
|
|
+ return (ino_t)hash_64(fileid, (sizeof(ino_t) * 8) - 1) + 1;
|
|
|
|
+
|
|
return (ino_t)fileid;
|
|
return (ino_t)fileid;
|
|
|
|
+
|
|
}
|
|
}
|
|
-#else
|
|
|
|
-static inline ino_t
|
|
|
|
-cifs_uniqueid_to_ino_t(u64 fileid)
|
|
|
|
-{
|
|
|
|
- return (ino_t)hash_64(fileid, (sizeof(ino_t) * 8) - 1) + 1;
|
|
|
|
-}
|
|
|
|
-#endif
|
|
|
|
|
|
|
|
extern struct file_system_type cifs_fs_type;
|
|
extern struct file_system_type cifs_fs_type;
|
|
extern const struct address_space_operations cifs_addr_ops;
|
|
extern const struct address_space_operations cifs_addr_ops;
|