Revert "UBUNTU: SAUCE: overlayfs -- overlayfs: add statfs support"
authorAndy Whitcroft <apw@canonical.com>
Mon, 16 Jan 2012 18:36:57 +0000 (18:36 +0000)
committerLeann Ogasawara <leann.ogasawara@canonical.com>
Mon, 2 Apr 2012 20:17:39 +0000 (13:17 -0700)
This reverts commit 6ab5b165e79d3d5817394d4e5800dca014197deb.

Signed-off-by: Andy Whitcroft <apw@canonical.com>

fs/overlayfs/super.c

index d8862e6..64054e9 100644 (file)
@@ -396,29 +396,9 @@ static int ovl_remount_fs(struct super_block *sb, int *flagsp, char *data)
                return mnt_want_write(ufs->upper_mnt);
 }
 
-/**
- * ovl_statfs
- * @sb: The overlayfs super block
- * @buf: The struct kstatfs to fill in with stats
- *
- * Get the filesystem statistics.  As writes always target the upper layer
- * filesystem pass the statfs to the same filesystem.
- */
-static int ovl_statfs(struct dentry *dentry, struct kstatfs *buf)
-{
-       struct dentry *root_dentry = dentry->d_sb->s_root;
-       struct path path;
-       ovl_path_upper(root_dentry, &path);
-
-       if (!path.dentry->d_sb->s_op->statfs)
-               return -ENOSYS;
-       return path.dentry->d_sb->s_op->statfs(path.dentry, buf);
-}
-
 static const struct super_operations ovl_super_operations = {
        .put_super      = ovl_put_super,
        .remount_fs     = ovl_remount_fs,
-       .statfs         = ovl_statfs,
 };
 
 struct ovl_config {