diff options
Diffstat (limited to 'kernel/fs/squashfs/export.c')
-rw-r--r-- | kernel/fs/squashfs/export.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/kernel/fs/squashfs/export.c b/kernel/fs/squashfs/export.c index 17fe0df..8a40095 100644 --- a/kernel/fs/squashfs/export.c +++ b/kernel/fs/squashfs/export.c @@ -108,9 +108,10 @@ static struct dentry *squashfs_fh_to_parent(struct super_block *sb, static struct dentry *squashfs_get_parent(struct dentry *child) { - struct inode *i = child->d_inode; + struct inode *inode = child->d_inode; + unsigned int parent_ino = SQUASHFS_I(inode)->parent_inode; - return squashfs_export_iget(i->i_sb, SQUASHFS_I(i)->parent_inode); + return squashfs_export_iget(inode->i_sb, parent_ino); } |