Skip to contentSkip to conversation

change a comment on fs/ext4/extents.c

PATCH Superseded [email protected] 2 participants 3 messages Jun 19, 2012 – Jun 21, 2012 ext4 file system

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 change a comment on fs/ext4/extents.c

From: HaiboLiu <[email protected]>

May be it's better.

---
 fs/ext4/extents.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
fs/ext4/extents.c +1 -2
index 74f23c2..db671b9 100644
@@ -1807,11 +1807,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);
Signature · 1 line
1.7.9.5
#1 lore raw

Hi Haibo,

If your patch only relates to ext4, please change the patch's subject like this:
[PATCH] ext4: change a comment on fs/ext4/extents.c

Quoted 3 lines · On Tue, Jun 19, 2012 at 11:35:47PM +0800, [email protected] wrote:

From: HaiboLiu <[email protected]>

May be it's better.

Maybe the following commit log is better:
In this patch (197217a5), ext4_ext_try_to_merge has been changed to merge an extent both left and right. So we need to update the comment in here.

Regards,
Zheng

Quoted 30 lines
---
 fs/ext4/extents.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
fs/ext4/extents.c +1 -2
index 74f23c2..db671b9 100644
@@ -1807,11 +1807,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);
Signature · 6 lines
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
author
#2 lore raw
In reply to [email protected]
Quoted 46 lines

Hi Haibo,

If your patch only relates to ext4, please change the patch's subject like this:
[PATCH] ext4: change a comment on fs/ext4/extents.c

Quoted 3 lines · On Tue, Jun 19, 2012 at 11:35:47PM +0800, [email protected] wrote:

From: HaiboLiu <[email protected]>

May be it's better.

Maybe the following commit log is better:
In this patch (197217a5), ext4_ext_try_to_merge has been changed to merge an extent both left and right. So we need to update the comment in here.

Regards,
Zheng

Quoted 26 lines
---
 fs/ext4/extents.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
fs/ext4/extents.c +1 -2
index 74f23c2..db671b9 100644
@@ -1807,11 +1807,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);
Signature · 1 line
1.7.9.5
Quoted 8 lines
Quoted 4 lines

--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Thanks for your suggestion. I update the patch subject and the patch comment and resend it.

Regards,
Haibo Liu