diff options
author | Eric Sandeen <sandeen@redhat.com> | 2012-01-04 22:33:28 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2012-01-04 22:33:28 -0500 |
commit | 5f163cc759a9fa8844a4efcf1f579dc5b2ca2491 (patch) | |
tree | 2a8e127fbe2e807113699de992cd1d248b1f9e3e /fs/ext4 | |
parent | 176576dbc8141528557eeeb007af2d5a2a4891ef (diff) |
ext4: make more symbols static
A couple more functions can reasonably be made static if desired.
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4')
-rw-r--r-- | fs/ext4/balloc.c | 4 | ||||
-rw-r--r-- | fs/ext4/ext4.h | 5 | ||||
-rw-r--r-- | fs/ext4/inode.c | 5 |
3 files changed, 7 insertions, 7 deletions
diff --git a/fs/ext4/balloc.c b/fs/ext4/balloc.c index 12ccacda44e0..f9e2cd8cf711 100644 --- a/fs/ext4/balloc.c +++ b/fs/ext4/balloc.c | |||
@@ -23,6 +23,8 @@ | |||
23 | 23 | ||
24 | #include <trace/events/ext4.h> | 24 | #include <trace/events/ext4.h> |
25 | 25 | ||
26 | static unsigned ext4_num_base_meta_clusters(struct super_block *sb, | ||
27 | ext4_group_t block_group); | ||
26 | /* | 28 | /* |
27 | * balloc.c contains the blocks allocation and deallocation routines | 29 | * balloc.c contains the blocks allocation and deallocation routines |
28 | */ | 30 | */ |
@@ -668,7 +670,7 @@ unsigned long ext4_bg_num_gdb(struct super_block *sb, ext4_group_t group) | |||
668 | * This function returns the number of file system metadata clusters at | 670 | * This function returns the number of file system metadata clusters at |
669 | * the beginning of a block group, including the reserved gdt blocks. | 671 | * the beginning of a block group, including the reserved gdt blocks. |
670 | */ | 672 | */ |
671 | unsigned ext4_num_base_meta_clusters(struct super_block *sb, | 673 | static unsigned ext4_num_base_meta_clusters(struct super_block *sb, |
672 | ext4_group_t block_group) | 674 | ext4_group_t block_group) |
673 | { | 675 | { |
674 | struct ext4_sb_info *sbi = EXT4_SB(sb); | 676 | struct ext4_sb_info *sbi = EXT4_SB(sb); |
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h index 13d15149c85c..e7dc9ad73941 100644 --- a/fs/ext4/ext4.h +++ b/fs/ext4/ext4.h | |||
@@ -1803,8 +1803,6 @@ extern void ext4_init_block_bitmap(struct super_block *sb, | |||
1803 | extern unsigned ext4_free_clusters_after_init(struct super_block *sb, | 1803 | extern unsigned ext4_free_clusters_after_init(struct super_block *sb, |
1804 | ext4_group_t block_group, | 1804 | ext4_group_t block_group, |
1805 | struct ext4_group_desc *gdp); | 1805 | struct ext4_group_desc *gdp); |
1806 | extern unsigned ext4_num_base_meta_clusters(struct super_block *sb, | ||
1807 | ext4_group_t block_group); | ||
1808 | extern unsigned ext4_num_overhead_clusters(struct super_block *sb, | 1806 | extern unsigned ext4_num_overhead_clusters(struct super_block *sb, |
1809 | ext4_group_t block_group, | 1807 | ext4_group_t block_group, |
1810 | struct ext4_group_desc *gdp); | 1808 | struct ext4_group_desc *gdp); |
@@ -1896,9 +1894,6 @@ extern int ext4_chunk_trans_blocks(struct inode *, int nrblocks); | |||
1896 | extern int ext4_discard_partial_page_buffers(handle_t *handle, | 1894 | extern int ext4_discard_partial_page_buffers(handle_t *handle, |
1897 | struct address_space *mapping, loff_t from, | 1895 | struct address_space *mapping, loff_t from, |
1898 | loff_t length, int flags); | 1896 | loff_t length, int flags); |
1899 | extern int ext4_discard_partial_page_buffers_no_lock(handle_t *handle, | ||
1900 | struct inode *inode, struct page *page, loff_t from, | ||
1901 | loff_t length, int flags); | ||
1902 | extern int ext4_page_mkwrite(struct vm_area_struct *vma, struct vm_fault *vmf); | 1897 | extern int ext4_page_mkwrite(struct vm_area_struct *vma, struct vm_fault *vmf); |
1903 | extern qsize_t *ext4_get_reserved_space(struct inode *inode); | 1898 | extern qsize_t *ext4_get_reserved_space(struct inode *inode); |
1904 | extern void ext4_da_update_reserve_space(struct inode *inode, | 1899 | extern void ext4_da_update_reserve_space(struct inode *inode, |
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c index e6cc24dfa98d..a526684cbe3e 100644 --- a/fs/ext4/inode.c +++ b/fs/ext4/inode.c | |||
@@ -72,6 +72,9 @@ static int ext4_set_bh_endio(struct buffer_head *bh, struct inode *inode); | |||
72 | static void ext4_end_io_buffer_write(struct buffer_head *bh, int uptodate); | 72 | static void ext4_end_io_buffer_write(struct buffer_head *bh, int uptodate); |
73 | static int __ext4_journalled_writepage(struct page *page, unsigned int len); | 73 | static int __ext4_journalled_writepage(struct page *page, unsigned int len); |
74 | static int ext4_bh_delay_or_unwritten(handle_t *handle, struct buffer_head *bh); | 74 | static int ext4_bh_delay_or_unwritten(handle_t *handle, struct buffer_head *bh); |
75 | static int ext4_discard_partial_page_buffers_no_lock(handle_t *handle, | ||
76 | struct inode *inode, struct page *page, loff_t from, | ||
77 | loff_t length, int flags); | ||
75 | 78 | ||
76 | /* | 79 | /* |
77 | * Test whether an inode is a fast symlink. | 80 | * Test whether an inode is a fast symlink. |
@@ -3161,7 +3164,7 @@ int ext4_discard_partial_page_buffers(handle_t *handle, | |||
3161 | * | 3164 | * |
3162 | * Returns zero on sucess or negative on failure. | 3165 | * Returns zero on sucess or negative on failure. |
3163 | */ | 3166 | */ |
3164 | int ext4_discard_partial_page_buffers_no_lock(handle_t *handle, | 3167 | static int ext4_discard_partial_page_buffers_no_lock(handle_t *handle, |
3165 | struct inode *inode, struct page *page, loff_t from, | 3168 | struct inode *inode, struct page *page, loff_t from, |
3166 | loff_t length, int flags) | 3169 | loff_t length, int flags) |
3167 | { | 3170 | { |