[GFS2] API change for gfs2_statfs
authorSteven Whitehouse <swhiteho@redhat.com>
Mon, 3 Jul 2006 15:38:01 +0000 (11:38 -0400)
committerSteven Whitehouse <swhiteho@redhat.com>
Mon, 3 Jul 2006 15:38:01 +0000 (11:38 -0400)
The kernel API for super_operations->statfs() has changed
so this updates GFS2 to the new API.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/ops_super.c

index 5f5fc3c42907a1b5d3df4b242ee740cfcbd931a6..50ea7f21f9cf3197acc76682ca6d1a39ca59b9e6 100644 (file)
@@ -202,8 +202,9 @@ static void gfs2_unlockfs(struct super_block *sb)
  * Returns: 0 on success or error code
  */
 
-static int gfs2_statfs(struct super_block *sb, struct kstatfs *buf)
+static int gfs2_statfs(struct dentry *dentry, struct kstatfs *buf)
 {
+       struct super_block *sb = dentry->d_inode->i_sb;
        struct gfs2_sbd *sdp = sb->s_fs_info;
        struct gfs2_statfs_change sc;
        int error;