aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/extents.c
diff options
context:
space:
mode:
authorAllison Henderson <achender@linux.vnet.ibm.com>2011-07-17 23:21:03 -0400
committerTheodore Ts'o <tytso@mit.edu>2011-07-17 23:21:03 -0400
commitc6a0371cbefade85376bbc326d18451860632dce (patch)
tree7580e70da75b508953c1c10c0636ae56188ba76e /fs/ext4/extents.c
parentf7d0d3797fac6cad24ad9f86dd9baf65c586b434 (diff)
ext4: remove unneeded parameter to ext4_ext_remove_space()
This patch removes the extra parameter in ext4_ext_remove_space() which is no longer needed. Signed-off-by: Allison Henderson <achender@linux.vnet.ibm.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/extents.c')
-rw-r--r--fs/ext4/extents.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c
index 06b30b61205f..3d8c5f50ba33 100644
--- a/fs/ext4/extents.c
+++ b/fs/ext4/extents.c
@@ -2500,8 +2500,7 @@ ext4_ext_more_to_rm(struct ext4_ext_path *path)
2500 return 1; 2500 return 1;
2501} 2501}
2502 2502
2503static int ext4_ext_remove_space(struct inode *inode, ext4_lblk_t start, 2503static int ext4_ext_remove_space(struct inode *inode, ext4_lblk_t start)
2504 ext4_lblk_t end)
2505{ 2504{
2506 struct super_block *sb = inode->i_sb; 2505 struct super_block *sb = inode->i_sb;
2507 int depth = ext_depth(inode); 2506 int depth = ext_depth(inode);
@@ -2541,7 +2540,7 @@ again:
2541 if (i == depth) { 2540 if (i == depth) {
2542 /* this is leaf block */ 2541 /* this is leaf block */
2543 err = ext4_ext_rm_leaf(handle, inode, path, 2542 err = ext4_ext_rm_leaf(handle, inode, path,
2544 start, end); 2543 start, EXT_MAX_BLOCKS - 1);
2545 /* root level has p_bh == NULL, brelse() eats this */ 2544 /* root level has p_bh == NULL, brelse() eats this */
2546 brelse(path[i].p_bh); 2545 brelse(path[i].p_bh);
2547 path[i].p_bh = NULL; 2546 path[i].p_bh = NULL;
@@ -3683,7 +3682,7 @@ void ext4_ext_truncate(struct inode *inode)
3683 3682
3684 last_block = (inode->i_size + sb->s_blocksize - 1) 3683 last_block = (inode->i_size + sb->s_blocksize - 1)
3685 >> EXT4_BLOCK_SIZE_BITS(sb); 3684 >> EXT4_BLOCK_SIZE_BITS(sb);
3686 err = ext4_ext_remove_space(inode, last_block, EXT_MAX_BLOCKS - 1); 3685 err = ext4_ext_remove_space(inode, last_block);
3687 3686
3688 /* In a multi-transaction truncate, we only make the final 3687 /* In a multi-transaction truncate, we only make the final
3689 * transaction synchronous. 3688 * transaction synchronous.