Commit b6cd0b772dcc5dc9b4c03d53946474dee399fa72
Committed by
Linus Torvalds
1 parent
a7807a32bb
Exists in
master
and in
7 other branches
[PATCH] fs/buffer.c: cleanups
- add a proper prototype for the following global function: - buffer_init() - make the following needlessly global function static: - end_buffer_async_write() Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Showing 3 changed files with 3 additions and 4 deletions Side-by-side Diff
fs/buffer.c
... | ... | @@ -564,7 +564,7 @@ |
564 | 564 | * Completion handler for block_write_full_page() - pages which are unlocked |
565 | 565 | * during I/O, and which have PageWriteback cleared upon I/O completion. |
566 | 566 | */ |
567 | -void end_buffer_async_write(struct buffer_head *bh, int uptodate) | |
567 | +static void end_buffer_async_write(struct buffer_head *bh, int uptodate) | |
568 | 568 | { |
569 | 569 | char b[BDEVNAME_SIZE]; |
570 | 570 | unsigned long flags; |
... | ... | @@ -3166,7 +3166,6 @@ |
3166 | 3166 | EXPORT_SYMBOL(block_truncate_page); |
3167 | 3167 | EXPORT_SYMBOL(block_write_full_page); |
3168 | 3168 | EXPORT_SYMBOL(cont_prepare_write); |
3169 | -EXPORT_SYMBOL(end_buffer_async_write); | |
3170 | 3169 | EXPORT_SYMBOL(end_buffer_read_sync); |
3171 | 3170 | EXPORT_SYMBOL(end_buffer_write_sync); |
3172 | 3171 | EXPORT_SYMBOL(file_fsync); |
include/linux/buffer_head.h
... | ... | @@ -149,7 +149,6 @@ |
149 | 149 | unsigned long b_state); |
150 | 150 | void end_buffer_read_sync(struct buffer_head *bh, int uptodate); |
151 | 151 | void end_buffer_write_sync(struct buffer_head *bh, int uptodate); |
152 | -void end_buffer_async_write(struct buffer_head *bh, int uptodate); | |
153 | 152 | |
154 | 153 | /* Things to do with buffers at mapping->private_list */ |
155 | 154 | void mark_buffer_dirty_inode(struct buffer_head *bh, struct inode *inode); |
... | ... | @@ -214,6 +213,7 @@ |
214 | 213 | int nobh_writepage(struct page *page, get_block_t *get_block, |
215 | 214 | struct writeback_control *wbc); |
216 | 215 | |
216 | +void buffer_init(void); | |
217 | 217 | |
218 | 218 | /* |
219 | 219 | * inline definitions |
init/main.c
... | ... | @@ -48,6 +48,7 @@ |
48 | 48 | #include <linux/mempolicy.h> |
49 | 49 | #include <linux/key.h> |
50 | 50 | #include <linux/unwind.h> |
51 | +#include <linux/buffer_head.h> | |
51 | 52 | |
52 | 53 | #include <asm/io.h> |
53 | 54 | #include <asm/bugs.h> |
... | ... | @@ -80,7 +81,6 @@ |
80 | 81 | extern void sbus_init(void); |
81 | 82 | extern void sysctl_init(void); |
82 | 83 | extern void signals_init(void); |
83 | -extern void buffer_init(void); | |
84 | 84 | extern void pidhash_init(void); |
85 | 85 | extern void pidmap_init(void); |
86 | 86 | extern void prio_tree_init(void); |