diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2010-03-23 10:37:36 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2010-05-21 18:31:17 -0400 |
commit | 7ed1ee6118ae77330cae2a6d5e9383532f7dfb48 (patch) | |
tree | 5f91faf8ddb9b210f9f66b15bd5c82c04e9a54e9 /fs/super.c | |
parent | e8c26255992474a2161c63ce9d385827302e4530 (diff) |
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.c | 25 |
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 @@ | |||
31 | #include <linux/mount.h> | 31 | #include <linux/mount.h> |
32 | #include <linux/security.h> | 32 | #include <linux/security.h> |
33 | #include <linux/syscalls.h> | 33 | #include <linux/syscalls.h> |
34 | #include <linux/vfs.h> | ||
35 | #include <linux/writeback.h> /* for the emergency remount stuff */ | 34 | #include <linux/writeback.h> /* for the emergency remount stuff */ |
36 | #include <linux/idr.h> | 35 | #include <linux/idr.h> |
37 | #include <linux/kobject.h> | 36 | #include <linux/kobject.h> |
@@ -519,30 +518,6 @@ rescan: | |||
519 | return NULL; | 518 | return NULL; |
520 | } | 519 | } |
521 | 520 | ||
522 | SYSCALL_DEFINE2(ustat, unsigned, dev, struct ustat __user *, ubuf) | ||
523 | { | ||
524 | struct super_block *s; | ||
525 | struct ustat tmp; | ||
526 | struct kstatfs sbuf; | ||
527 | int err = -EINVAL; | ||
528 | |||
529 | s = user_get_super(new_decode_dev(dev)); | ||
530 | if (s == NULL) | ||
531 | goto out; | ||
532 | err = vfs_statfs(s->s_root, &sbuf); | ||
533 | drop_super(s); | ||
534 | if (err) | ||
535 | goto out; | ||
536 | |||
537 | memset(&tmp,0,sizeof(struct ustat)); | ||
538 | tmp.f_tfree = sbuf.f_bfree; | ||
539 | tmp.f_tinode = sbuf.f_ffree; | ||
540 | |||
541 | err = copy_to_user(ubuf,&tmp,sizeof(struct ustat)) ? -EFAULT : 0; | ||
542 | out: | ||
543 | return err; | ||
544 | } | ||
545 | |||
546 | /** | 521 | /** |
547 | * do_remount_sb - asks filesystem to change mount options. | 522 | * do_remount_sb - asks filesystem to change mount options. |
548 | * @sb: superblock in question | 523 | * @sb: superblock in question |