summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Morton <akpm@zip.com.au>2002-04-29 23:52:18 -0700
committerLinus Torvalds <torvalds@home.transmeta.com>2002-04-29 23:52:18 -0700
commit4beda7c18475935cab8dc80c14aa04f31743dc0f (patch)
treead4b50cdb3f2e2f285c251888e79d06ee45dcaa5 /include
parent090da37209e13c26f3723e847860e9f7ab23e113 (diff)
[PATCH] remove buffer unused_list
Removes the buffer_head unused list. Use a mempool instead. The reduced lock contention provided about a 10% boost on ANton's 12-way.
Diffstat (limited to 'include')
-rw-r--r--include/linux/fs.h6
-rw-r--r--include/linux/slab.h1
2 files changed, 3 insertions, 4 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index 4b38c11f9723..6f06e8e06c06 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -206,7 +206,7 @@ extern int leases_enable, dir_notify_enable, lease_break_time;
extern void update_atime (struct inode *);
#define UPDATE_ATIME(inode) update_atime (inode)
-extern void buffer_init(unsigned long);
+extern void buffer_init(void);
extern void inode_init(unsigned long);
extern void mnt_init(unsigned long);
extern void files_init(unsigned long);
@@ -1536,8 +1536,8 @@ static inline void map_bh(struct buffer_head *bh, struct super_block *sb, int bl
}
extern void wakeup_bdflush(void);
-extern void put_unused_buffer_head(struct buffer_head * bh);
-extern struct buffer_head * get_unused_buffer_head(int async);
+extern struct buffer_head *alloc_buffer_head(int async);
+extern void free_buffer_head(struct buffer_head * bh);
extern int brw_page(int, struct page *, struct block_device *, sector_t [], int);
diff --git a/include/linux/slab.h b/include/linux/slab.h
index 50cefbbc92a8..2722b5a342a8 100644
--- a/include/linux/slab.h
+++ b/include/linux/slab.h
@@ -70,7 +70,6 @@ extern kmem_cache_t *names_cachep;
extern kmem_cache_t *files_cachep;
extern kmem_cache_t *filp_cachep;
extern kmem_cache_t *dquot_cachep;
-extern kmem_cache_t *bh_cachep;
extern kmem_cache_t *fs_cachep;
extern kmem_cache_t *sigact_cachep;
extern kmem_cache_t *bio_cachep;