diff options
author | Christoph Hellwig <hch@lst.de> | 2008-12-02 09:54:17 -0500 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-12-02 09:54:17 -0500 |
commit | b2950863c61bc24cf0f63bc05947d9d50663c4c0 (patch) | |
tree | 3005a034713fe86db2d64ab1b21fe8762f6a4b0c /fs/btrfs/disk-io.c | |
parent | 1ffa4f426c002161b7dbd58b297f5d0680e7dd6a (diff) |
Btrfs: make things static and include the right headers
Shut up various sparse warnings about symbols that should be either
static or have their declarations in scope.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r-- | fs/btrfs/disk-io.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index fb04665e5005..8a2bcc7024fe 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c | |||
@@ -93,9 +93,9 @@ struct async_submit_bio { | |||
93 | * extents on the btree inode are pretty simple, there's one extent | 93 | * extents on the btree inode are pretty simple, there's one extent |
94 | * that covers the entire device | 94 | * that covers the entire device |
95 | */ | 95 | */ |
96 | struct extent_map *btree_get_extent(struct inode *inode, struct page *page, | 96 | static struct extent_map *btree_get_extent(struct inode *inode, |
97 | size_t page_offset, u64 start, u64 len, | 97 | struct page *page, size_t page_offset, u64 start, u64 len, |
98 | int create) | 98 | int create) |
99 | { | 99 | { |
100 | struct extent_map_tree *em_tree = &BTRFS_I(inode)->extent_tree; | 100 | struct extent_map_tree *em_tree = &BTRFS_I(inode)->extent_tree; |
101 | struct extent_map *em; | 101 | struct extent_map *em; |
@@ -295,7 +295,7 @@ printk("read extent buffer pages failed with ret %d mirror no %d\n", ret, mirror | |||
295 | * checksum a dirty tree block before IO. This has extra checks to make | 295 | * checksum a dirty tree block before IO. This has extra checks to make |
296 | * sure we only fill in the checksum field in the first page of a multi-page block | 296 | * sure we only fill in the checksum field in the first page of a multi-page block |
297 | */ | 297 | */ |
298 | int csum_dirty_buffer(struct btrfs_root *root, struct page *page) | 298 | static int csum_dirty_buffer(struct btrfs_root *root, struct page *page) |
299 | { | 299 | { |
300 | struct extent_io_tree *tree; | 300 | struct extent_io_tree *tree; |
301 | u64 start = (u64)page->index << PAGE_CACHE_SHIFT; | 301 | u64 start = (u64)page->index << PAGE_CACHE_SHIFT; |
@@ -365,7 +365,7 @@ static int check_tree_block_fsid(struct btrfs_root *root, | |||
365 | return ret; | 365 | return ret; |
366 | } | 366 | } |
367 | 367 | ||
368 | int btree_readpage_end_io_hook(struct page *page, u64 start, u64 end, | 368 | static int btree_readpage_end_io_hook(struct page *page, u64 start, u64 end, |
369 | struct extent_state *state) | 369 | struct extent_state *state) |
370 | { | 370 | { |
371 | struct extent_io_tree *tree; | 371 | struct extent_io_tree *tree; |
@@ -660,7 +660,7 @@ static int btree_writepages(struct address_space *mapping, | |||
660 | return extent_writepages(tree, mapping, btree_get_extent, wbc); | 660 | return extent_writepages(tree, mapping, btree_get_extent, wbc); |
661 | } | 661 | } |
662 | 662 | ||
663 | int btree_readpage(struct file *file, struct page *page) | 663 | static int btree_readpage(struct file *file, struct page *page) |
664 | { | 664 | { |
665 | struct extent_io_tree *tree; | 665 | struct extent_io_tree *tree; |
666 | tree = &BTRFS_I(page->mapping->host)->io_tree; | 666 | tree = &BTRFS_I(page->mapping->host)->io_tree; |
@@ -1200,7 +1200,7 @@ static void __unplug_io_fn(struct backing_dev_info *bdi, struct page *page) | |||
1200 | } | 1200 | } |
1201 | } | 1201 | } |
1202 | 1202 | ||
1203 | void btrfs_unplug_io_fn(struct backing_dev_info *bdi, struct page *page) | 1203 | static void btrfs_unplug_io_fn(struct backing_dev_info *bdi, struct page *page) |
1204 | { | 1204 | { |
1205 | struct inode *inode; | 1205 | struct inode *inode; |
1206 | struct extent_map_tree *em_tree; | 1206 | struct extent_map_tree *em_tree; |
@@ -1842,7 +1842,7 @@ static void btrfs_end_buffer_write_sync(struct buffer_head *bh, int uptodate) | |||
1842 | put_bh(bh); | 1842 | put_bh(bh); |
1843 | } | 1843 | } |
1844 | 1844 | ||
1845 | int write_all_supers(struct btrfs_root *root) | 1845 | static int write_all_supers(struct btrfs_root *root) |
1846 | { | 1846 | { |
1847 | struct list_head *cur; | 1847 | struct list_head *cur; |
1848 | struct list_head *head = &root->fs_info->fs_devices->devices; | 1848 | struct list_head *head = &root->fs_info->fs_devices->devices; |