]> Pileus Git - ~andy/linux/blobdiff - fs/sysv/itree.c
Merge branch 'rmobile/bonito' into rmobile-latest
[~andy/linux] / fs / sysv / itree.c
index fa8d43c92bb81a7a03d3eda50f35dccec42bd44b..90b54b438789664b555931f07b42e1d356396e07 100644 (file)
@@ -442,7 +442,7 @@ static unsigned sysv_nblocks(struct super_block *s, loff_t size)
 
 int sysv_getattr(struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat)
 {
-       struct super_block *s = mnt->mnt_sb;
+       struct super_block *s = dentry->d_sb;
        generic_fillattr(dentry->d_inode, stat);
        stat->blocks = (s->s_blocksize / 512) * sysv_nblocks(s, stat->size);
        stat->blksize = s->s_blocksize;