add patch cleanup-handling-of-bh-b_state-in-DAX-mmap
[ext4-patch-queue.git] / trim-unused-params-from-convert_initialized_extent
blob606ef96bec5e4ecc0f8eaf248b37c09afd54aa5b
1 ext4: trim unused parameter from convert_initialized_extent()
3 From: Eric Whitney <enwlinux@gmail.com>
5 The flags parameter is also unused.
7 Signed-off-by: Eric Whitney <enwlinux@gmail.com>
8 Signed-off-by: Theodore Ts'o <tytso@mit.edu>
9 ---
10  fs/ext4/extents.c | 4 ++--
11  1 file changed, 2 insertions(+), 2 deletions(-)
13 diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c
14 index 3753ceb..73a48c1 100644
15 --- a/fs/ext4/extents.c
16 +++ b/fs/ext4/extents.c
17 @@ -3927,7 +3927,7 @@ get_reserved_cluster_alloc(struct inode *inode, ext4_lblk_t lblk_start,
18  static int
19  convert_initialized_extent(handle_t *handle, struct inode *inode,
20                            struct ext4_map_blocks *map,
21 -                          struct ext4_ext_path **ppath, int flags,
22 +                          struct ext4_ext_path **ppath,
23                            unsigned int allocated)
24  {
25         struct ext4_ext_path *path = *ppath;
26 @@ -4347,7 +4347,7 @@ int ext4_ext_map_blocks(handle_t *handle, struct inode *inode,
27                             (flags & EXT4_GET_BLOCKS_CONVERT_UNWRITTEN)) {
28                                 allocated = convert_initialized_extent(
29                                                 handle, inode, map, &path,
30 -                                               flags, allocated);
31 +                                               allocated);
32                                 goto out2;
33                         } else if (!ext4_ext_is_unwritten(ex))
34                                 goto out;