Patchwork [2/3] ext4: correct the debug message in ext4_ext_insert_extent

login
register
mail settings
Submitter Robin Dong
Date July 22, 2011, 2:23 a.m.
Message ID <1311301421-10533-2-git-send-email-hao.bigrat@gmail.com>
Download mbox | patch
Permalink /patch/106207/
State Accepted
Headers show

Comments

Robin Dong - July 22, 2011, 2:23 a.m.
From: Robin Dong <sanbai@taobao.com>

The debug message in ext4_ext_insert_extent before moving extent
is incorrect (the "from xx to xx").

Signed-off-by: Robin Dong <sanbai@taobao.com>
---
 fs/ext4/extents.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Theodore Ts'o - July 24, 2011, 1:55 a.m.
On Fri, Jul 22, 2011 at 10:23:40AM +0800, Robin Dong wrote:
> From: Robin Dong <sanbai@taobao.com>
> 
> The debug message in ext4_ext_insert_extent before moving extent
> is incorrect (the "from xx to xx").
> 
> Signed-off-by: Robin Dong <sanbai@taobao.com>

Thanks, added to the ext4 tree.

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

Patch

diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c
index 3966839..a4d6216 100644
--- a/fs/ext4/extents.c
+++ b/fs/ext4/extents.c
@@ -1839,7 +1839,7 @@  has_space:
 				ext4_ext_pblock(newext),
 				ext4_ext_is_uninitialized(newext),
 				ext4_ext_get_actual_len(newext),
-				nearex, len, nearex + 1, nearex + 2);
+				nearex, len, nearex, nearex + 1);
 		memmove(nearex + 1, nearex, len);
 		path[depth].p_ext = nearex;
 	}