From: Adrian Bunk Date: Fri Jan 26 11:53:16 2007 Subject: [Ocfs2-devel] Re: [2.6 patch] fix OCFS2 compile error In-Reply-To: <20070126194713.GB8176@ca-server1.us.oracle.com> References: <45B89008.9000809@eyal.emu.id.au> <45B965EA.20106@eyal.emu.id.au> <20070126184942.GP17836@stusta.de> <20070126194713.GB8176@ca-server1.us.oracle.com> Message-ID: <20070126195321.GT17836@stusta.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Mark Fasheh Cc: Eyal Lebedinsky , Linux Kernel Mailing List , kurt.hackel@oracle.com, ocfs2-devel@oss.oracle.com On Fri, Jan 26, 2007 at 11:47:13AM -0800, Mark Fasheh wrote: > On Fri, Jan 26, 2007 at 07:49:42PM +0100, Adrian Bunk wrote: > > I don't know why gcc 3.3 generates this now since ocfs2_backup_super_blkno() > > seems to be unused, but there is a bug for 32 bit systems that should be > > fixed: > > > > Commit 50af94b14c98f5769860a282a397c6f3b135c8a8 adds: > > offset /= sb->s_blocksize; > > > > That is: > > u64 = u64 / long > > > > Not a problem on 64bit architectures, but obviously a problem on 32 bit > > architectures. > > > > This patch fixes it by using sb->s_blocksize_bits instead of sb->s_blocksize. > > Thanks Adrian... I think we both hit upon this at about the same time :) My > patch made it into ocfs2.git first (for obvious reasons)... That's unfair. ;-) > --Mark cu Adrian -- "Is there not promise of rain?" Ling Tan asked suddenly out of the darkness. There had been need of rain for many days. "Only a promise," Lao Er said. Pearl S. Buck - Dragon Seed