From: Al Viro Date: Sat, 16 Jul 2011 21:43:09 +0000 (-0400) Subject: minix_getattr(): don't bother with ->d_parent X-Git-Tag: MMI-PSA29.97-13-9~18895^2~22 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2def9e4ec75e6771def66a07960dd516e119ab4c;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git minix_getattr(): don't bother with ->d_parent we can find superblock easier, TYVM... Signed-off-by: Al Viro --- diff --git a/fs/minix/inode.c b/fs/minix/inode.c index adcdc0a4e182..e7d23e25bf1d 100644 --- a/fs/minix/inode.c +++ b/fs/minix/inode.c @@ -596,8 +596,7 @@ static int minix_write_inode(struct inode *inode, struct writeback_control *wbc) int minix_getattr(struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat) { - struct inode *dir = dentry->d_parent->d_inode; - struct super_block *sb = dir->i_sb; + struct super_block *sb = dentry->d_sb; generic_fillattr(dentry->d_inode, stat); if (INODE_VERSION(dentry->d_inode) == MINIX_V1) stat->blocks = (BLOCK_SIZE / 512) * V1_minix_blocks(stat->size, sb);