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/inode.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/inode.c')
-rw-r--r-- | fs/btrfs/inode.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index b3d4078b69a6..bd58ba655a4d 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c | |||
@@ -1130,7 +1130,7 @@ static int run_delalloc_range(struct inode *inode, struct page *locked_page, | |||
1130 | * bytes in this file, and to maintain the list of inodes that | 1130 | * bytes in this file, and to maintain the list of inodes that |
1131 | * have pending delalloc work to be done. | 1131 | * have pending delalloc work to be done. |
1132 | */ | 1132 | */ |
1133 | int btrfs_set_bit_hook(struct inode *inode, u64 start, u64 end, | 1133 | static int btrfs_set_bit_hook(struct inode *inode, u64 start, u64 end, |
1134 | unsigned long old, unsigned long bits) | 1134 | unsigned long old, unsigned long bits) |
1135 | { | 1135 | { |
1136 | unsigned long flags; | 1136 | unsigned long flags; |
@@ -1151,7 +1151,7 @@ int btrfs_set_bit_hook(struct inode *inode, u64 start, u64 end, | |||
1151 | /* | 1151 | /* |
1152 | * extent_io.c clear_bit_hook, see set_bit_hook for why | 1152 | * extent_io.c clear_bit_hook, see set_bit_hook for why |
1153 | */ | 1153 | */ |
1154 | int btrfs_clear_bit_hook(struct inode *inode, u64 start, u64 end, | 1154 | static int btrfs_clear_bit_hook(struct inode *inode, u64 start, u64 end, |
1155 | unsigned long old, unsigned long bits) | 1155 | unsigned long old, unsigned long bits) |
1156 | { | 1156 | { |
1157 | if ((old & EXTENT_DELALLOC) && (bits & EXTENT_DELALLOC)) { | 1157 | if ((old & EXTENT_DELALLOC) && (bits & EXTENT_DELALLOC)) { |
@@ -1215,7 +1215,7 @@ int btrfs_merge_bio_hook(struct page *page, unsigned long offset, | |||
1215 | * At IO completion time the cums attached on the ordered extent record | 1215 | * At IO completion time the cums attached on the ordered extent record |
1216 | * are inserted into the btree | 1216 | * are inserted into the btree |
1217 | */ | 1217 | */ |
1218 | int __btrfs_submit_bio_start(struct inode *inode, int rw, struct bio *bio, | 1218 | static int __btrfs_submit_bio_start(struct inode *inode, int rw, struct bio *bio, |
1219 | int mirror_num, unsigned long bio_flags) | 1219 | int mirror_num, unsigned long bio_flags) |
1220 | { | 1220 | { |
1221 | struct btrfs_root *root = BTRFS_I(inode)->root; | 1221 | struct btrfs_root *root = BTRFS_I(inode)->root; |
@@ -1234,7 +1234,7 @@ int __btrfs_submit_bio_start(struct inode *inode, int rw, struct bio *bio, | |||
1234 | * At IO completion time the cums attached on the ordered extent record | 1234 | * At IO completion time the cums attached on the ordered extent record |
1235 | * are inserted into the btree | 1235 | * are inserted into the btree |
1236 | */ | 1236 | */ |
1237 | int __btrfs_submit_bio_done(struct inode *inode, int rw, struct bio *bio, | 1237 | static int __btrfs_submit_bio_done(struct inode *inode, int rw, struct bio *bio, |
1238 | int mirror_num, unsigned long bio_flags) | 1238 | int mirror_num, unsigned long bio_flags) |
1239 | { | 1239 | { |
1240 | struct btrfs_root *root = BTRFS_I(inode)->root; | 1240 | struct btrfs_root *root = BTRFS_I(inode)->root; |
@@ -1245,7 +1245,7 @@ int __btrfs_submit_bio_done(struct inode *inode, int rw, struct bio *bio, | |||
1245 | * extent_io.c submission hook. This does the right thing for csum calculation on write, | 1245 | * extent_io.c submission hook. This does the right thing for csum calculation on write, |
1246 | * or reading the csums from the tree before a read | 1246 | * or reading the csums from the tree before a read |
1247 | */ | 1247 | */ |
1248 | int btrfs_submit_bio_hook(struct inode *inode, int rw, struct bio *bio, | 1248 | static int btrfs_submit_bio_hook(struct inode *inode, int rw, struct bio *bio, |
1249 | int mirror_num, unsigned long bio_flags) | 1249 | int mirror_num, unsigned long bio_flags) |
1250 | { | 1250 | { |
1251 | struct btrfs_root *root = BTRFS_I(inode)->root; | 1251 | struct btrfs_root *root = BTRFS_I(inode)->root; |
@@ -1313,7 +1313,7 @@ struct btrfs_writepage_fixup { | |||
1313 | struct btrfs_work work; | 1313 | struct btrfs_work work; |
1314 | }; | 1314 | }; |
1315 | 1315 | ||
1316 | void btrfs_writepage_fixup_worker(struct btrfs_work *work) | 1316 | static void btrfs_writepage_fixup_worker(struct btrfs_work *work) |
1317 | { | 1317 | { |
1318 | struct btrfs_writepage_fixup *fixup; | 1318 | struct btrfs_writepage_fixup *fixup; |
1319 | struct btrfs_ordered_extent *ordered; | 1319 | struct btrfs_ordered_extent *ordered; |
@@ -1372,7 +1372,7 @@ out_page: | |||
1372 | * to fix it up. The async helper will wait for ordered extents, set | 1372 | * to fix it up. The async helper will wait for ordered extents, set |
1373 | * the delalloc bit and make it safe to write the page. | 1373 | * the delalloc bit and make it safe to write the page. |
1374 | */ | 1374 | */ |
1375 | int btrfs_writepage_start_hook(struct page *page, u64 start, u64 end) | 1375 | static int btrfs_writepage_start_hook(struct page *page, u64 start, u64 end) |
1376 | { | 1376 | { |
1377 | struct inode *inode = page->mapping->host; | 1377 | struct inode *inode = page->mapping->host; |
1378 | struct btrfs_writepage_fixup *fixup; | 1378 | struct btrfs_writepage_fixup *fixup; |
@@ -1526,7 +1526,7 @@ nocow: | |||
1526 | return 0; | 1526 | return 0; |
1527 | } | 1527 | } |
1528 | 1528 | ||
1529 | int btrfs_writepage_end_io_hook(struct page *page, u64 start, u64 end, | 1529 | static int btrfs_writepage_end_io_hook(struct page *page, u64 start, u64 end, |
1530 | struct extent_state *state, int uptodate) | 1530 | struct extent_state *state, int uptodate) |
1531 | { | 1531 | { |
1532 | return btrfs_finish_ordered_io(page->mapping->host, start, end); | 1532 | return btrfs_finish_ordered_io(page->mapping->host, start, end); |
@@ -1548,7 +1548,7 @@ struct io_failure_record { | |||
1548 | int last_mirror; | 1548 | int last_mirror; |
1549 | }; | 1549 | }; |
1550 | 1550 | ||
1551 | int btrfs_io_failed_hook(struct bio *failed_bio, | 1551 | static int btrfs_io_failed_hook(struct bio *failed_bio, |
1552 | struct page *page, u64 start, u64 end, | 1552 | struct page *page, u64 start, u64 end, |
1553 | struct extent_state *state) | 1553 | struct extent_state *state) |
1554 | { | 1554 | { |
@@ -1642,7 +1642,7 @@ int btrfs_io_failed_hook(struct bio *failed_bio, | |||
1642 | * each time an IO finishes, we do a fast check in the IO failure tree | 1642 | * each time an IO finishes, we do a fast check in the IO failure tree |
1643 | * to see if we need to process or clean up an io_failure_record | 1643 | * to see if we need to process or clean up an io_failure_record |
1644 | */ | 1644 | */ |
1645 | int btrfs_clean_io_failures(struct inode *inode, u64 start) | 1645 | static int btrfs_clean_io_failures(struct inode *inode, u64 start) |
1646 | { | 1646 | { |
1647 | u64 private; | 1647 | u64 private; |
1648 | u64 private_failure; | 1648 | u64 private_failure; |
@@ -1675,7 +1675,7 @@ int btrfs_clean_io_failures(struct inode *inode, u64 start) | |||
1675 | * if there's a match, we allow the bio to finish. If not, we go through | 1675 | * if there's a match, we allow the bio to finish. If not, we go through |
1676 | * the io_failure_record routines to find good copies | 1676 | * the io_failure_record routines to find good copies |
1677 | */ | 1677 | */ |
1678 | int btrfs_readpage_end_io_hook(struct page *page, u64 start, u64 end, | 1678 | static int btrfs_readpage_end_io_hook(struct page *page, u64 start, u64 end, |
1679 | struct extent_state *state) | 1679 | struct extent_state *state) |
1680 | { | 1680 | { |
1681 | size_t offset = start - ((u64)page->index << PAGE_CACHE_SHIFT); | 1681 | size_t offset = start - ((u64)page->index << PAGE_CACHE_SHIFT); |
@@ -4362,8 +4362,8 @@ out: | |||
4362 | * Invalidate a single dcache entry at the root of the filesystem. | 4362 | * Invalidate a single dcache entry at the root of the filesystem. |
4363 | * Needed after creation of snapshot or subvolume. | 4363 | * Needed after creation of snapshot or subvolume. |
4364 | */ | 4364 | */ |
4365 | void btrfs_invalidate_dcache_root(struct inode *dir, char *name, | 4365 | static void btrfs_invalidate_dcache_root(struct inode *dir, |
4366 | int namelen) | 4366 | char *name, int namelen) |
4367 | { | 4367 | { |
4368 | struct dentry *alias, *entry; | 4368 | struct dentry *alias, *entry; |
4369 | struct qstr qstr; | 4369 | struct qstr qstr; |