--- zzzz-none-000/linux-3.10.107/fs/squashfs/export.c 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/fs/squashfs/export.c 2021-02-04 17:41:59.000000000 +0000 @@ -54,7 +54,7 @@ struct squashfs_sb_info *msblk = sb->s_fs_info; int blk = SQUASHFS_LOOKUP_BLOCK(ino_num - 1); int offset = SQUASHFS_LOOKUP_BLOCK_OFFSET(ino_num - 1); - u64 start = le64_to_cpu(msblk->inode_lookup_table[blk]); + u64 start = squash_le64_to_cpu(msblk->inode_lookup_table[blk]); __le64 ino; int err; @@ -65,9 +65,9 @@ return err; TRACE("squashfs_inode_lookup, inode = 0x%llx\n", - (u64) le64_to_cpu(ino)); + (u64) squash_le64_to_cpu(ino)); - return le64_to_cpu(ino); + return squash_le64_to_cpu(ino); } @@ -110,7 +110,7 @@ static struct dentry *squashfs_get_parent(struct dentry *child) { - struct inode *inode = child->d_inode; + struct inode *inode = d_inode(child); unsigned int parent_ino = squashfs_i(inode)->parent; return squashfs_export_iget(inode->i_sb, parent_ino); @@ -147,7 +147,7 @@ * table[0] points to the first inode lookup table metadata block, * this should be less than lookup_table_start */ - if (!IS_ERR(table) && le64_to_cpu(table[0]) >= lookup_table_start) { + if (!IS_ERR(table) && squash_le64_to_cpu(table[0]) >= lookup_table_start) { kfree(table); return ERR_PTR(-EINVAL); }