summaryrefslogtreecommitdiff
path: root/fs/ext4
diff options
context:
space:
mode:
authorHaiboLiu <HaiboLiu6@gmail.com>2012-07-10 00:29:28 +0400
committerTheodore Ts'o <tytso@mit.edu>2012-07-10 00:29:28 +0400
commite7bcf8230498b9568e09d74e296e71a01e024006 (patch)
tree63dfb96c2c5c8e6a90acb4358b858a106a521481 /fs/ext4
parent41eb70dde42b2360074a559a6f1fc49860a50179 (diff)
downloadlinux-e7bcf8230498b9568e09d74e296e71a01e024006.tar.xz
ext4: fix out-of-date comments in extents.c
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>
Diffstat (limited to 'fs/ext4')
-rw-r--r--fs/ext4/extents.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c
index f1089cba913a..46b5c9fdc96a 100644
--- a/fs/ext4/extents.c
+++ b/fs/ext4/extents.c
@@ -1891,11 +1891,10 @@ has_space:
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);