aboutsummaryrefslogtreecommitdiffstats
path: root/fs/minix/inode.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2011-07-16 17:43:09 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2011-07-20 20:47:53 -0400
commit2def9e4ec75e6771def66a07960dd516e119ab4c (patch)
tree2457590cc93e8144710a66a875b66e8eb9cdc700 /fs/minix/inode.c
parentee60498f3ef94d7ed58dcd38077e27e839e7cafc (diff)
minix_getattr(): don't bother with ->d_parent
we can find superblock easier, TYVM... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/minix/inode.c')
-rw-r--r--fs/minix/inode.c3
1 files changed, 1 insertions, 2 deletions
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)
596 596
597int minix_getattr(struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat) 597int minix_getattr(struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat)
598{ 598{
599 struct inode *dir = dentry->d_parent->d_inode; 599 struct super_block *sb = dentry->d_sb;
600 struct super_block *sb = dir->i_sb;
601 generic_fillattr(dentry->d_inode, stat); 600 generic_fillattr(dentry->d_inode, stat);
602 if (INODE_VERSION(dentry->d_inode) == MINIX_V1) 601 if (INODE_VERSION(dentry->d_inode) == MINIX_V1)
603 stat->blocks = (BLOCK_SIZE / 512) * V1_minix_blocks(stat->size, sb); 602 stat->blocks = (BLOCK_SIZE / 512) * V1_minix_blocks(stat->size, sb);