summaryrefslogtreecommitdiff
path: root/fs/devfs/base.c
diff options
context:
space:
mode:
authorAlexander Viro <viro@math.psu.edu>2002-03-14 23:05:58 -0800
committerLinus Torvalds <torvalds@home.transmeta.com>2002-03-14 23:05:58 -0800
commit5e689743c7569951575e7da6ea2c2ea1ef9d08ab (patch)
tree0494bfdcaf4b804e695a0e8348887fdd536d841a /fs/devfs/base.c
parent4ce937cb16368dc68ccbbef7490666385502cd44 (diff)
[PATCH] fs/libfs.c
Linus, I've taken a bunch of common methods into fs/libfs.c and killed the (duplicated) instances in filesystems. There will be more - ideally I'd like to get a library that would make writing small filesystems trivial.
Diffstat (limited to 'fs/devfs/base.c')
-rw-r--r--fs/devfs/base.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/fs/devfs/base.c b/fs/devfs/base.c
index d0d4763fdea2..4552ad538480 100644
--- a/fs/devfs/base.c
+++ b/fs/devfs/base.c
@@ -2541,17 +2541,6 @@ static int devfs_notify_change (struct dentry *dentry, struct iattr *iattr)
return 0;
} /* End Function devfs_notify_change */
-static int devfs_statfs (struct super_block *sb, struct statfs *buf)
-{
- buf->f_type = DEVFS_SUPER_MAGIC;
- buf->f_bsize = FAKE_BLOCK_SIZE;
- buf->f_bfree = 0;
- buf->f_bavail = 0;
- buf->f_ffree = 0;
- buf->f_namelen = NAME_MAX;
- return 0;
-} /* End Function devfs_statfs */
-
static void devfs_clear_inode (struct inode *inode)
{
if ( S_ISBLK (inode->i_mode) ) bdput (inode->i_bdev);
@@ -2561,7 +2550,7 @@ static struct super_operations devfs_sops =
{
put_inode: force_delete,
clear_inode: devfs_clear_inode,
- statfs: devfs_statfs,
+ statfs: simple_statfs,
};