summaryrefslogtreecommitdiffstats
path: root/fs/super.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2010-03-23 10:37:36 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2010-05-21 18:31:17 -0400
commit7ed1ee6118ae77330cae2a6d5e9383532f7dfb48 (patch)
tree5f91faf8ddb9b210f9f66b15bd5c82c04e9a54e9 /fs/super.c
parente8c26255992474a2161c63ce9d385827302e4530 (diff)
downloadlinux-7ed1ee6118ae77330cae2a6d5e9383532f7dfb48.tar.gz
linux-7ed1ee6118ae77330cae2a6d5e9383532f7dfb48.tar.bz2
linux-7ed1ee6118ae77330cae2a6d5e9383532f7dfb48.zip
Take statfs variants to fs/statfs.c
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/super.c')
-rw-r--r--fs/super.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/fs/super.c b/fs/super.c
index 2c3e370c60d9..dba74e718751 100644
--- a/fs/super.c
+++ b/fs/super.c
@@ -31,7 +31,6 @@
#include <linux/mount.h>
#include <linux/security.h>
#include <linux/syscalls.h>
-#include <linux/vfs.h>
#include <linux/writeback.h> /* for the emergency remount stuff */
#include <linux/idr.h>
#include <linux/kobject.h>
@@ -519,30 +518,6 @@ rescan:
return NULL;
}
-SYSCALL_DEFINE2(ustat, unsigned, dev, struct ustat __user *, ubuf)
-{
- struct super_block *s;
- struct ustat tmp;
- struct kstatfs sbuf;
- int err = -EINVAL;
-
- s = user_get_super(new_decode_dev(dev));
- if (s == NULL)
- goto out;
- err = vfs_statfs(s->s_root, &sbuf);
- drop_super(s);
- if (err)
- goto out;
-
- memset(&tmp,0,sizeof(struct ustat));
- tmp.f_tfree = sbuf.f_bfree;
- tmp.f_tinode = sbuf.f_ffree;
-
- err = copy_to_user(ubuf,&tmp,sizeof(struct ustat)) ? -EFAULT : 0;
-out:
- return err;
-}
-
/**
* do_remount_sb - asks filesystem to change mount options.
* @sb: superblock in question