1 ext4: remove unused parameter "newblock" in convert_initialized_extent()
3 From: Eryu Guan <guaneryu@gmail.com>
5 The "newblock" parameter is not used in convert_initialized_extent(),
8 Signed-off-by: Eryu Guan <guaneryu@gmail.com>
9 Signed-off-by: Theodore Ts'o <tytso@mit.edu>
13 - Fix build error in v1, I tested the good patch and sent the wrong one...
15 fs/ext4/extents.c | 4 ++--
16 1 file changed, 2 insertions(+), 2 deletions(-)
18 diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c
19 index 0ffabaf..3753ceb 100644
20 --- a/fs/ext4/extents.c
21 +++ b/fs/ext4/extents.c
22 @@ -3928,7 +3928,7 @@ static int
23 convert_initialized_extent(handle_t *handle, struct inode *inode,
24 struct ext4_map_blocks *map,
25 struct ext4_ext_path **ppath, int flags,
26 - unsigned int allocated, ext4_fsblk_t newblock)
27 + unsigned int allocated)
29 struct ext4_ext_path *path = *ppath;
30 struct ext4_extent *ex;
31 @@ -4347,7 +4347,7 @@ int ext4_ext_map_blocks(handle_t *handle, struct inode *inode,
32 (flags & EXT4_GET_BLOCKS_CONVERT_UNWRITTEN)) {
33 allocated = convert_initialized_extent(
34 handle, inode, map, &path,
35 - flags, allocated, newblock);
38 } else if (!ext4_ext_is_unwritten(ex))