]> err.no Git - linux-2.6/blobdiff - fs/jffs2/fs.c
[PATCH] VFS: Permit filesystem to perform statfs with a known root dentry
[linux-2.6] / fs / jffs2 / fs.c
index 7b6c24b14f856c4cab36fe16661132640107bc85..2900ec3ec3afb79614a5479179880d0682dddf20 100644 (file)
@@ -192,9 +192,9 @@ int jffs2_setattr(struct dentry *dentry, struct iattr *iattr)
        return rc;
 }
 
-int jffs2_statfs(struct super_block *sb, struct kstatfs *buf)
+int jffs2_statfs(struct dentry *dentry, struct kstatfs *buf)
 {
-       struct jffs2_sb_info *c = JFFS2_SB_INFO(sb);
+       struct jffs2_sb_info *c = JFFS2_SB_INFO(dentry->d_sb);
        unsigned long avail;
 
        buf->f_type = JFFS2_SUPER_MAGIC;