Commit 2def9e4e authored by Al Viro's avatar Al Viro

minix_getattr(): don't bother with ->d_parent

we can find superblock easier, TYVM...
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent ee60498f
...@@ -596,8 +596,7 @@ static int minix_write_inode(struct inode *inode, struct writeback_control *wbc) ...@@ -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) int minix_getattr(struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat)
{ {
struct inode *dir = dentry->d_parent->d_inode; struct super_block *sb = dentry->d_sb;
struct super_block *sb = dir->i_sb;
generic_fillattr(dentry->d_inode, stat); generic_fillattr(dentry->d_inode, stat);
if (INODE_VERSION(dentry->d_inode) == MINIX_V1) if (INODE_VERSION(dentry->d_inode) == MINIX_V1)
stat->blocks = (BLOCK_SIZE / 512) * V1_minix_blocks(stat->size, sb); stat->blocks = (BLOCK_SIZE / 512) * V1_minix_blocks(stat->size, sb);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment