Skip to content

Commit

Permalink
ext4: fix out-of-date comments in extents.c
Browse files Browse the repository at this point in the history
In this patch, ext4_ext_try_to_merge has been change to merge 
an extent both left and right.  So we need to update the comment
in here.

Signed-off-by: HaiboLiu <HaiboLiu6@gmail.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
  • Loading branch information
HaiboLiu authored and Theodore Ts'o committed Jul 9, 2012
1 parent 41eb70d commit e7bcf82
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fs/ext4/extents.c
Original file line number Diff line number Diff line change
Expand Up @@ -1891,11 +1891,10 @@ int ext4_ext_insert_extent(handle_t *handle, struct inode *inode,
nearex->ee_len = newext->ee_len;

merge:
/* try to merge extents to the right */
/* try to merge extents */
if (!(flag & EXT4_GET_BLOCKS_PRE_IO))
ext4_ext_try_to_merge(inode, path, nearex);

/* try to merge extents to the left */

/* time to correct all indexes above */
err = ext4_ext_correct_indexes(handle, inode, path);
Expand Down

0 comments on commit e7bcf82

Please sign in to comment.