Skip to content

Commit

Permalink
minix_getattr(): don't bother with ->d_parent
Browse files Browse the repository at this point in the history
we can find superblock easier, TYVM...

Signed-off-by: Al Viro <[email protected]>
  • Loading branch information
Al Viro committed Jul 21, 2011
1 parent ee60498 commit 2def9e4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fs/minix/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 2def9e4

Please sign in to comment.