Skip to content

Commit 2def9e4

Browse files
author
Al Viro
committed
minix_getattr(): don't bother with ->d_parent
we can find superblock easier, TYVM... Signed-off-by: Al Viro <[email protected]>
1 parent ee60498 commit 2def9e4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

fs/minix/inode.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -596,8 +596,7 @@ static int minix_write_inode(struct inode *inode, struct writeback_control *wbc)
596596

597597
int minix_getattr(struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat)
598598
{
599-
struct inode *dir = dentry->d_parent->d_inode;
600-
struct super_block *sb = dir->i_sb;
599+
struct super_block *sb = dentry->d_sb;
601600
generic_fillattr(dentry->d_inode, stat);
602601
if (INODE_VERSION(dentry->d_inode) == MINIX_V1)
603602
stat->blocks = (BLOCK_SIZE / 512) * V1_minix_blocks(stat->size, sb);

0 commit comments

Comments
 (0)