diff options
author | Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> | 2008-01-28 23:58:27 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2008-01-28 23:58:27 -0500 |
commit | 1d03ec984ca41ba184822d1101babb3fa3e26c77 (patch) | |
tree | 6265c324e4c381d4324c69e1692fe6e6dc44cbbc /fs/ext4 | |
parent | 99e6f829a854daa6d56006cad51156e98863e73a (diff) |
ext4: Fix sparse warnings.
Fix sparse warnings related to static functions
and local variables.
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Diffstat (limited to 'fs/ext4')
-rw-r--r-- | fs/ext4/extents.c | 6 | ||||
-rw-r--r-- | fs/ext4/inode.c | 18 | ||||
-rw-r--r-- | fs/ext4/super.c | 3 |
3 files changed, 17 insertions, 10 deletions
diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c index 68537229ee1c..754c0d36d162 100644 --- a/fs/ext4/extents.c +++ b/fs/ext4/extents.c | |||
@@ -1088,7 +1088,7 @@ static ext4_lblk_t ext4_ext_next_leaf_block(struct inode *inode, | |||
1088 | * then we have to correct all indexes above. | 1088 | * then we have to correct all indexes above. |
1089 | * TODO: do we need to correct tree in all cases? | 1089 | * TODO: do we need to correct tree in all cases? |
1090 | */ | 1090 | */ |
1091 | int ext4_ext_correct_indexes(handle_t *handle, struct inode *inode, | 1091 | static int ext4_ext_correct_indexes(handle_t *handle, struct inode *inode, |
1092 | struct ext4_ext_path *path) | 1092 | struct ext4_ext_path *path) |
1093 | { | 1093 | { |
1094 | struct ext4_extent_header *eh; | 1094 | struct ext4_extent_header *eh; |
@@ -1535,7 +1535,7 @@ ext4_ext_in_cache(struct inode *inode, ext4_lblk_t block, | |||
1535 | * It's used in truncate case only, thus all requests are for | 1535 | * It's used in truncate case only, thus all requests are for |
1536 | * last index in the block only. | 1536 | * last index in the block only. |
1537 | */ | 1537 | */ |
1538 | int ext4_ext_rm_idx(handle_t *handle, struct inode *inode, | 1538 | static int ext4_ext_rm_idx(handle_t *handle, struct inode *inode, |
1539 | struct ext4_ext_path *path) | 1539 | struct ext4_ext_path *path) |
1540 | { | 1540 | { |
1541 | struct buffer_head *bh; | 1541 | struct buffer_head *bh; |
@@ -1806,7 +1806,7 @@ ext4_ext_more_to_rm(struct ext4_ext_path *path) | |||
1806 | return 1; | 1806 | return 1; |
1807 | } | 1807 | } |
1808 | 1808 | ||
1809 | int ext4_ext_remove_space(struct inode *inode, ext4_lblk_t start) | 1809 | static int ext4_ext_remove_space(struct inode *inode, ext4_lblk_t start) |
1810 | { | 1810 | { |
1811 | struct super_block *sb = inode->i_sb; | 1811 | struct super_block *sb = inode->i_sb; |
1812 | int depth = ext_depth(inode); | 1812 | int depth = ext_depth(inode); |
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c index 1ee19c918686..76ceba2718b9 100644 --- a/fs/ext4/inode.c +++ b/fs/ext4/inode.c | |||
@@ -2052,11 +2052,11 @@ static void ext4_clear_blocks(handle_t *handle, struct inode *inode, | |||
2052 | for (p = first; p < last; p++) { | 2052 | for (p = first; p < last; p++) { |
2053 | u32 nr = le32_to_cpu(*p); | 2053 | u32 nr = le32_to_cpu(*p); |
2054 | if (nr) { | 2054 | if (nr) { |
2055 | struct buffer_head *bh; | 2055 | struct buffer_head *tbh; |
2056 | 2056 | ||
2057 | *p = 0; | 2057 | *p = 0; |
2058 | bh = sb_find_get_block(inode->i_sb, nr); | 2058 | tbh = sb_find_get_block(inode->i_sb, nr); |
2059 | ext4_forget(handle, 0, inode, bh, nr); | 2059 | ext4_forget(handle, 0, inode, tbh, nr); |
2060 | } | 2060 | } |
2061 | } | 2061 | } |
2062 | 2062 | ||
@@ -2324,8 +2324,10 @@ void ext4_truncate(struct inode *inode) | |||
2324 | return; | 2324 | return; |
2325 | } | 2325 | } |
2326 | 2326 | ||
2327 | if (EXT4_I(inode)->i_flags & EXT4_EXTENTS_FL) | 2327 | if (EXT4_I(inode)->i_flags & EXT4_EXTENTS_FL) { |
2328 | return ext4_ext_truncate(inode, page); | 2328 | ext4_ext_truncate(inode, page); |
2329 | return; | ||
2330 | } | ||
2329 | 2331 | ||
2330 | handle = start_transaction(inode); | 2332 | handle = start_transaction(inode); |
2331 | if (IS_ERR(handle)) { | 2333 | if (IS_ERR(handle)) { |
@@ -3163,8 +3165,10 @@ ext4_reserve_inode_write(handle_t *handle, struct inode *inode, | |||
3163 | * Expand an inode by new_extra_isize bytes. | 3165 | * Expand an inode by new_extra_isize bytes. |
3164 | * Returns 0 on success or negative error number on failure. | 3166 | * Returns 0 on success or negative error number on failure. |
3165 | */ | 3167 | */ |
3166 | int ext4_expand_extra_isize(struct inode *inode, unsigned int new_extra_isize, | 3168 | static int ext4_expand_extra_isize(struct inode *inode, |
3167 | struct ext4_iloc iloc, handle_t *handle) | 3169 | unsigned int new_extra_isize, |
3170 | struct ext4_iloc iloc, | ||
3171 | handle_t *handle) | ||
3168 | { | 3172 | { |
3169 | struct ext4_inode *raw_inode; | 3173 | struct ext4_inode *raw_inode; |
3170 | struct ext4_xattr_ibody_header *header; | 3174 | struct ext4_xattr_ibody_header *header; |
diff --git a/fs/ext4/super.c b/fs/ext4/super.c index 4d7f33f79552..7be27dbe76bf 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c | |||
@@ -1644,6 +1644,9 @@ static ext4_fsblk_t descriptor_loc(struct super_block *sb, | |||
1644 | 1644 | ||
1645 | 1645 | ||
1646 | static int ext4_fill_super (struct super_block *sb, void *data, int silent) | 1646 | static int ext4_fill_super (struct super_block *sb, void *data, int silent) |
1647 | __releases(kernel_sem) | ||
1648 | __acquires(kernel_sem) | ||
1649 | |||
1647 | { | 1650 | { |
1648 | struct buffer_head * bh; | 1651 | struct buffer_head * bh; |
1649 | struct ext4_super_block *es = NULL; | 1652 | struct ext4_super_block *es = NULL; |