summaryrefslogtreecommitdiff
path: root/include/linux/fs.h
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/linux/fs.h
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/linux/fs.h')
-rw-r--r--include/linux/fs.h6
1 files changed, 3 insertions, 3 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);