* [Ocfs2-devel] [PATCH] ocfs2: Remove the redundant cpu_to_le64.
@ 2010-07-08 3:11 Tao Ma
2010-07-12 18:32 ` Joel Becker
0 siblings, 1 reply; 2+ messages in thread
From: Tao Ma @ 2010-07-08 3:11 UTC (permalink / raw)
To: ocfs2-devel
In ocfs2_block_group_alloc, we set c_blkno by bg->bg_blkno.
But actually bg->bg_blkno is already changed to little endian
in ocfs2_block_group_fill. So remove the extra cpu_to_le64.
Reported-by: Marcos Matsunaga <Marcos.Matsunaga@oracle.com>
Signed-off-by: Tao Ma <tao.ma@oracle.com>
---
fs/ocfs2/suballoc.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/fs/ocfs2/suballoc.c b/fs/ocfs2/suballoc.c
index 8e881b5..3b8f85b 100644
--- a/fs/ocfs2/suballoc.c
+++ b/fs/ocfs2/suballoc.c
@@ -618,7 +618,7 @@ static int ocfs2_block_group_alloc(struct ocfs2_super *osb,
le16_to_cpu(bg->bg_free_bits_count));
le32_add_cpu(&cl->cl_recs[alloc_rec].c_total,
le16_to_cpu(bg->bg_bits));
- cl->cl_recs[alloc_rec].c_blkno = cpu_to_le64(bg->bg_blkno);
+ cl->cl_recs[alloc_rec].c_blkno = bg->bg_blkno;
if (le16_to_cpu(cl->cl_next_free_rec) < le16_to_cpu(cl->cl_count))
le16_add_cpu(&cl->cl_next_free_rec, 1);
--
1.7.1.571.gba4d01
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Ocfs2-devel] [PATCH] ocfs2: Remove the redundant cpu_to_le64.
2010-07-08 3:11 [Ocfs2-devel] [PATCH] ocfs2: Remove the redundant cpu_to_le64 Tao Ma
@ 2010-07-12 18:32 ` Joel Becker
0 siblings, 0 replies; 2+ messages in thread
From: Joel Becker @ 2010-07-12 18:32 UTC (permalink / raw)
To: ocfs2-devel
On Thu, Jul 08, 2010 at 11:11:11AM +0800, Tao Ma wrote:
> In ocfs2_block_group_alloc, we set c_blkno by bg->bg_blkno.
> But actually bg->bg_blkno is already changed to little endian
> in ocfs2_block_group_fill. So remove the extra cpu_to_le64.
>
> Reported-by: Marcos Matsunaga <Marcos.Matsunaga@oracle.com>
> Signed-off-by: Tao Ma <tao.ma@oracle.com>
This patch is now in the fixes branch of ocfs2.git.
Joel
--
f/8 and be there.
Joel Becker
Consulting Software Developer
Oracle
E-mail: joel.becker at oracle.com
Phone: (650) 506-8127
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-07-12 18:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-08 3:11 [Ocfs2-devel] [PATCH] ocfs2: Remove the redundant cpu_to_le64 Tao Ma
2010-07-12 18:32 ` Joel Becker
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.