summaryrefslogtreecommitdiff
path: root/net/socket.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 /net/socket.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 'net/socket.c')
-rw-r--r--net/socket.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/net/socket.c b/net/socket.c
index 1b6351a167f8..99b5a8e3657e 100644
--- a/net/socket.c
+++ b/net/socket.c
@@ -263,13 +263,6 @@ int move_addr_to_user(void *kaddr, int klen, void *uaddr, int *ulen)
}
#define SOCKFS_MAGIC 0x534F434B
-static int sockfs_statfs(struct super_block *sb, struct statfs *buf)
-{
- buf->f_type = SOCKFS_MAGIC;
- buf->f_bsize = 1024;
- buf->f_namelen = 255;
- return 0;
-}
static kmem_cache_t * sock_inode_cachep;
@@ -321,7 +314,7 @@ static int init_inodecache(void)
static struct super_operations sockfs_ops = {
alloc_inode: sock_alloc_inode,
destroy_inode: sock_destroy_inode,
- statfs: sockfs_statfs,
+ statfs: simple_statfs,
};
static int sockfs_fill_super(struct super_block *sb, void *data, int silent)