@@ -333,7 +333,7 @@ ext4_force_split_extent_at(handle_t *handle, struct inode *inode,
333333 int nofail )
334334{
335335 int unwritten = ext4_ext_is_unwritten (path [path -> p_depth ].p_ext );
336- int flags = EXT4_EX_NOCACHE | EXT4_GET_BLOCKS_PRE_IO ;
336+ int flags = EXT4_EX_NOCACHE | EXT4_GET_BLOCKS_SPLIT_NOMERGE ;
337337
338338 if (nofail )
339339 flags |= EXT4_GET_BLOCKS_METADATA_NOFAIL | EXT4_EX_NOFAIL ;
@@ -2002,7 +2002,7 @@ ext4_ext_insert_extent(handle_t *handle, struct inode *inode,
20022002 }
20032003
20042004 /* try to insert block into found extent and return */
2005- if (ex && !(gb_flags & EXT4_GET_BLOCKS_PRE_IO )) {
2005+ if (ex && !(gb_flags & EXT4_GET_BLOCKS_SPLIT_NOMERGE )) {
20062006
20072007 /*
20082008 * Try to see whether we should rather test the extent on
@@ -2181,7 +2181,7 @@ ext4_ext_insert_extent(handle_t *handle, struct inode *inode,
21812181
21822182merge :
21832183 /* try to merge extents */
2184- if (!(gb_flags & EXT4_GET_BLOCKS_PRE_IO ))
2184+ if (!(gb_flags & EXT4_GET_BLOCKS_SPLIT_NOMERGE ))
21852185 ext4_ext_try_to_merge (handle , inode , path , nearex );
21862186
21872187 /* time to correct all indexes above */
@@ -3224,7 +3224,7 @@ static struct ext4_ext_path *ext4_split_extent_at(handle_t *handle,
32243224 else
32253225 ext4_ext_mark_initialized (ex );
32263226
3227- if (!(flags & EXT4_GET_BLOCKS_PRE_IO ))
3227+ if (!(flags & EXT4_GET_BLOCKS_SPLIT_NOMERGE ))
32283228 ext4_ext_try_to_merge (handle , inode , path , ex );
32293229
32303230 err = ext4_ext_dirty (handle , inode , path + path -> p_depth );
@@ -3368,7 +3368,7 @@ static struct ext4_ext_path *ext4_split_extent(handle_t *handle,
33683368
33693369 if (map -> m_lblk + map -> m_len < ee_block + ee_len ) {
33703370 split_flag1 = split_flag & EXT4_EXT_MAY_ZEROOUT ;
3371- flags1 = flags | EXT4_GET_BLOCKS_PRE_IO ;
3371+ flags1 = flags | EXT4_GET_BLOCKS_SPLIT_NOMERGE ;
33723372 if (unwritten )
33733373 split_flag1 |= EXT4_EXT_MARK_UNWRIT1 |
33743374 EXT4_EXT_MARK_UNWRIT2 ;
@@ -3739,7 +3739,7 @@ static struct ext4_ext_path *ext4_split_convert_extents(handle_t *handle,
37393739 EXT4_EXT_MAY_ZEROOUT : 0 ;
37403740 split_flag |= (EXT4_EXT_MARK_UNWRIT2 | EXT4_EXT_DATA_VALID2 );
37413741 }
3742- flags |= EXT4_GET_BLOCKS_PRE_IO ;
3742+ flags |= EXT4_GET_BLOCKS_SPLIT_NOMERGE ;
37433743 return ext4_split_extent (handle , inode , path , map , split_flag , flags ,
37443744 allocated );
37453745}
@@ -3911,7 +3911,7 @@ ext4_ext_handle_unwritten_extents(handle_t *handle, struct inode *inode,
39113911 * allocated , newblock );
39123912
39133913 /* get_block() before submitting IO, split the extent */
3914- if (flags & EXT4_GET_BLOCKS_PRE_IO ) {
3914+ if (flags & EXT4_GET_BLOCKS_SPLIT_NOMERGE ) {
39153915 path = ext4_split_convert_extents (handle , inode , map , path ,
39163916 flags | EXT4_GET_BLOCKS_CONVERT , allocated );
39173917 if (IS_ERR (path ))
@@ -5618,7 +5618,7 @@ static int ext4_insert_range(struct file *file, loff_t offset, loff_t len)
56185618 path = ext4_split_extent_at (handle , inode , path ,
56195619 start_lblk , split_flag ,
56205620 EXT4_EX_NOCACHE |
5621- EXT4_GET_BLOCKS_PRE_IO |
5621+ EXT4_GET_BLOCKS_SPLIT_NOMERGE |
56225622 EXT4_GET_BLOCKS_METADATA_NOFAIL );
56235623 }
56245624
0 commit comments