fn hash_inode(&self, index: SuperIndex, inode: u64) -> Result<u64> {
        // Do not hash negative dentry
        if inode == 0 {
            return Ok(inode);
        }
        if inode > VFS_MAX_INO {
            return Err(Error::new(
                ErrorKind::Other,
                format!(
                    "Inode number {} too large, max supported {}",
                    inode, VFS_MAX_INO
                ),
            ));
        }
        let ino: u64 = ((index as u64) << VFS_SUPER_INDEX_SHIFT) | inode;
        trace!(
            "vfs hash inode index {:x} inode {:x} fuse ino {:x}",
            index,
            inode,
            ino
        );
        Ok(ino)
    }
// Inode hashing rules:
// 1. Pseudo fs inode is not hashed
// 2. Index is always larger than 0 so that pseudo fs inodes are never affected
//    and can be found directly
// 3. Other inodes are hashed via (index << 56 | inode)
Inode hashing rules:
1. Pseudo fs inode is not hashed
2. Index is always larger than 0 so that pseudo fs inodes are never affected
and can be found directly
3. Other inodes are hashed via (index << 56 | inode)
Inode hashing rules : 1 . Pseudo fs inode is not hashed 2 . Index is always larger than 0 so that pseudo fs inodes are never affected and can be found directly 3 . Other inodes are hashed via ( index << 56 | inode )
fn hash_inode(&self, index: SuperIndex, inode: u64) -> Result<u64> {
        // Do not hash negative dentry
        if inode == 0 {
            return Ok(inode);
        }
        if inode > VFS_MAX_INO {
            return Err(Error::new(
                ErrorKind::Other,
                format!(
                    "Inode number {} too large, max supported {}",
                    inode, VFS_MAX_INO
                ),
            ));
        }
        let ino: u64 = ((index as u64) << VFS_SUPER_INDEX_SHIFT) | inode;
        trace!(
            "vfs hash inode index {:x} inode {:x} fuse ino {:x}",
            index,
            inode,
            ino
        );
        Ok(ino)
    }
fn hash_inode ( & self , index : SuperIndex , inode : u64 ) -> Result < u64 > { // Do not hash negative dentry if inode == 0 { return Ok ( inode ) ; } if inode > VFS_MAX_INO { return Err ( Error :: new ( ErrorKind :: Other , format ! ( " " inode VFS_MAX_INO ) , ) ) ; } let ino : u64 = ( ( index as u64 ) << VFS_SUPER_INDEX_SHIFT ) | inode ; trace ! ( " " index inode ino ) ; Ok ( ino ) }
Inode hashing rules:
1.
Inode hashing rules : 1 .
&self
index
SuperIndex
inode
u64
&self
index
SuperIndex
inode
u64