update commit description for fix-memleak-in-ext4_readdir
[ext4-patch-queue.git] / remove-unused-parameter-newblock
blob3555134682a767a5109165d1cfefcad8e55e9e7c
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(),
6 remove it.
8 Signed-off-by: Eryu Guan <guaneryu@gmail.com>
9 Signed-off-by: Theodore Ts'o <tytso@mit.edu>
10 ---
12 v2:
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)
28  {
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);
36 +                                               flags, allocated);
37                                 goto out2;
38                         } else if (!ext4_ext_is_unwritten(ex))
39                                 goto out;
40 -- 
41 2.5.0