Commit 5f163cc759a9fa8844a4efcf1f579dc5b2ca2491
Committed by
Theodore Ts'o
1 parent
176576dbc8
Exists in
master
and in
6 other branches
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>
Showing 3 changed files with 7 additions and 7 deletions Side-by-side Diff
fs/ext4/balloc.c
... | ... | @@ -23,6 +23,8 @@ |
23 | 23 | |
24 | 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 | 29 | * balloc.c contains the blocks allocation and deallocation routines |
28 | 30 | */ |
... | ... | @@ -668,7 +670,7 @@ |
668 | 670 | * This function returns the number of file system metadata clusters at |
669 | 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 | 674 | ext4_group_t block_group) |
673 | 675 | { |
674 | 676 | struct ext4_sb_info *sbi = EXT4_SB(sb); |
fs/ext4/ext4.h
... | ... | @@ -1803,8 +1803,6 @@ |
1803 | 1803 | extern unsigned ext4_free_clusters_after_init(struct super_block *sb, |
1804 | 1804 | ext4_group_t block_group, |
1805 | 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 | 1806 | extern unsigned ext4_num_overhead_clusters(struct super_block *sb, |
1809 | 1807 | ext4_group_t block_group, |
1810 | 1808 | struct ext4_group_desc *gdp); |
... | ... | @@ -1895,9 +1893,6 @@ |
1895 | 1893 | extern int ext4_chunk_trans_blocks(struct inode *, int nrblocks); |
1896 | 1894 | extern int ext4_discard_partial_page_buffers(handle_t *handle, |
1897 | 1895 | struct address_space *mapping, loff_t from, |
1898 | - 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 | 1896 | loff_t length, int flags); |
1902 | 1897 | extern int ext4_page_mkwrite(struct vm_area_struct *vma, struct vm_fault *vmf); |
1903 | 1898 | extern qsize_t *ext4_get_reserved_space(struct inode *inode); |
fs/ext4/inode.c
... | ... | @@ -72,6 +72,9 @@ |
72 | 72 | static void ext4_end_io_buffer_write(struct buffer_head *bh, int uptodate); |
73 | 73 | static int __ext4_journalled_writepage(struct page *page, unsigned int len); |
74 | 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 | 80 | * Test whether an inode is a fast symlink. |
... | ... | @@ -3161,7 +3164,7 @@ |
3161 | 3164 | * |
3162 | 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 | 3168 | struct inode *inode, struct page *page, loff_t from, |
3166 | 3169 | loff_t length, int flags) |
3167 | 3170 | { |