linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [EXT4 set 9][PATCH 4/5]Morecleanups:ext4_extent_compilation_fixes
@ 2007-07-01  7:38 Mingming Cao
  2007-07-11  6:18 ` Andrew Morton
  0 siblings, 1 reply; 3+ messages in thread
From: Mingming Cao @ 2007-07-01  7:38 UTC (permalink / raw)
  To: linux-fsdevel, linux-kernel, linux-ext4

From: Dmitry Monakhov <dmonakhov@sw.ru>
Subject: ext4: extent compilation fixes

Fix compilation with EXT_DEBUG, also fix leXX_to_cpu convertions.

Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
Acked-by: Alex Tomas <alex@clusterfs.com>
Signed-off-by: Dave Kleikamp <shaggy@linux.vnet.ibm.com>
---
 fs/ext4/extents.c |   18 ++++++++++--------
 1 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c
index 6f72dcb..12fe3d7 100644
--- a/fs/ext4/extents.c
+++ b/fs/ext4/extents.c
@@ -382,13 +382,14 @@ ext4_ext_binsearch_idx(struct inode *inode, struct ext4_ext_path *path, int bloc
 			r = m - 1;
 		else
 			l = m + 1;
-		ext_debug("%p(%u):%p(%u):%p(%u) ", l, l->ei_block,
-				m, m->ei_block, r, r->ei_block);
+		ext_debug("%p(%u):%p(%u):%p(%u) ", l, le32_to_cpu(l->ei_block),
+				m, le32_to_cpu(m->ei_block),
+				r, le32_to_cpu(r->ei_block));
 	}

 	path->p_idx = l - 1;
 	ext_debug("  -> %d->%lld ", le32_to_cpu(path->p_idx->ei_block),
-		  idx_block(path->p_idx));
+		  idx_pblock(path->p_idx));

 #ifdef CHECK_BINSEARCH
 	{
@@ -447,8 +448,9 @@ ext4_ext_binsearch(struct inode *inode, struct ext4_ext_path *path, int block)
 			r = m - 1;
 		else
 			l = m + 1;
-		ext_debug("%p(%u):%p(%u):%p(%u) ", l, l->ee_block,
-				m, m->ee_block, r, r->ee_block);
+		ext_debug("%p(%u):%p(%u):%p(%u) ", l, le32_to_cpu(l->ee_block),
+				m, le32_to_cpu(m->ee_block),
+				r, le32_to_cpu(r->ee_block));
 	}

 	path->p_ext = l - 1;
@@ -580,7 +582,7 @@ static int ext4_ext_insert_index(handle_t *handle, struct inode *inode,
 		if (curp->p_idx != EXT_LAST_INDEX(curp->p_hdr)) {
 			len = (len - 1) * sizeof(struct ext4_extent_idx);
 			len = len < 0 ? 0 : len;
-			ext_debug("insert new index %d after: %d. "
+			ext_debug("insert new index %d after: %llu. "
 					"move %d from 0x%p to 0x%p\n",
 					logical, ptr, len,
 					(curp->p_idx + 1), (curp->p_idx + 2));
@@ -591,7 +593,7 @@ static int ext4_ext_insert_index(handle_t *handle, struct inode *inode,
 		/* insert before */
 		len = len * sizeof(struct ext4_extent_idx);
 		len = len < 0 ? 0 : len;
-		ext_debug("insert new index %d before: %d. "
+		ext_debug("insert new index %d before: %llu. "
 				"move %d from 0x%p to 0x%p\n",
 				logical, ptr, len,
 				curp->p_idx, (curp->p_idx + 1));
@@ -791,7 +793,7 @@ static int ext4_ext_split(handle_t *handle, struct inode *inode,
 		BUG_ON(EXT_MAX_INDEX(path[i].p_hdr) !=
 				EXT_LAST_INDEX(path[i].p_hdr));
 		while (path[i].p_idx <= EXT_MAX_INDEX(path[i].p_hdr)) {
-			ext_debug("%d: move %d:%d in new index %llu\n", i,
+			ext_debug("%d: move %d:%llu in new index %llu\n", i,
 					le32_to_cpu(path[i].p_idx->ei_block),
 					idx_pblock(path[i].p_idx),
 					newblock);

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [EXT4 set 9][PATCH 4/5]Morecleanups:ext4_extent_compilation_fixes
  2007-07-01  7:38 [EXT4 set 9][PATCH 4/5]Morecleanups:ext4_extent_compilation_fixes Mingming Cao
@ 2007-07-11  6:18 ` Andrew Morton
  2007-07-16  7:19   ` Mingming Cao
  0 siblings, 1 reply; 3+ messages in thread
From: Andrew Morton @ 2007-07-11  6:18 UTC (permalink / raw)
  To: cmm; +Cc: linux-fsdevel, linux-kernel, linux-ext4

On Sun, 01 Jul 2007 03:38:51 -0400 Mingming Cao <cmm@us.ibm.com> wrote:

> Subject: [EXT4 set 9][PATCH 4/5]Morecleanups:ext4_extent_compilation_fixes
> Date: 	Sun, 01 Jul 2007 03:38:51 -0400
> Sender: linux-kernel-owner@vger.kernel.org
> Organization: IBM Linux Technology Center
> X-Mailer: Evolution 2.8.0 (2.8.0-33.el5) 
> 
> From: Dmitry Monakhov <dmonakhov@sw.ru>
> Subject: ext4: extent compilation fixes

I hope this patch series will hit git with nice titles like "ext4: extent
compilation fixes" and not funny ones like
"Morecleanups:ext4_extent_compilation_fixes".

> Fix compilation with EXT_DEBUG, also fix leXX_to_cpu convertions.

"conversions".

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [EXT4 set 9][PATCH 4/5]Morecleanups:ext4_extent_compilation_fixes
  2007-07-11  6:18 ` Andrew Morton
@ 2007-07-16  7:19   ` Mingming Cao
  0 siblings, 0 replies; 3+ messages in thread
From: Mingming Cao @ 2007-07-16  7:19 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-fsdevel, linux-kernel, linux-ext4

On Tue, 2007-07-10 at 23:18 -0700, Andrew Morton wrote:
> On Sun, 01 Jul 2007 03:38:51 -0400 Mingming Cao <cmm@us.ibm.com> wrote:
> 
> > Subject: [EXT4 set 9][PATCH 4/5]Morecleanups:ext4_extent_compilation_fixes
> > Date: 	Sun, 01 Jul 2007 03:38:51 -0400
> > Sender: linux-kernel-owner@vger.kernel.org
> > Organization: IBM Linux Technology Center
> > X-Mailer: Evolution 2.8.0 (2.8.0-33.el5) 
> > 
> > From: Dmitry Monakhov <dmonakhov@sw.ru>
> > Subject: ext4: extent compilation fixes
> 
> I hope this patch series will hit git with nice titles like "ext4: extent
> compilation fixes" and not funny ones like
> "Morecleanups:ext4_extent_compilation_fixes".
> 
Sure, the changelog keep the nice tile "Subject: ext4: extent
compilation fixes"

> > Fix compilation with EXT_DEBUG, also fix leXX_to_cpu convertions.
> 
> "conversions".

Done.

Thanks,
Mingming

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-07-16  7:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-01  7:38 [EXT4 set 9][PATCH 4/5]Morecleanups:ext4_extent_compilation_fixes Mingming Cao
2007-07-11  6:18 ` Andrew Morton
2007-07-16  7:19   ` Mingming Cao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).