From: Arnd Bergmann Subject: Re: [Patch 04/18] include/linux/logfs.h Date: Sun, 3 Jun 2007 23:42:25 +0200 Message-ID: <200706032342.27252.arnd@arndb.de> References: <20070603183845.GA8952@lazybastard.org> <20070603184205.GE8952@lazybastard.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org, akpm@osdl.org, Sam Ravnborg , John Stoffel , David Woodhouse , Jamie Lokier , Artem Bityutskiy , CaT , Jan Engelhardt , Evgeniy Polyakov , David Weinehall , Willy Tarreau , Kyle Moffett , Dongjun Shin , Pavel Machek , Bill Davidsen , Thomas Gleixner , Albert Cahalan , Pekka Enberg , Roland Dreier , Ondrej Zajicek , Ulisses Furquim To: =?utf-8?q?J=C3=B6rn_Engel?= Return-path: Received: from moutng.kundenserver.de ([212.227.126.188]:59265 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750827AbXFCVoI convert rfc822-to-8bit (ORCPT ); Sun, 3 Jun 2007 17:44:08 -0400 In-Reply-To: <20070603184205.GE8952@lazybastard.org> Content-Disposition: inline Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Sunday 03 June 2007, J=C3=B6rn Engel wrote: > +struct logfs_je_spillout { > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0__be64=C2=A0=C2=A0so_segme= nt[0]; > +}__packed; All the on-disk data structures you define in this file have naturally aligned members, so the __packed attribute is not needed. However, I think it causes gcc to generate larger and slower code on some architectures, because now it has to assume that the data structure itself has no more than byte alignment. I'd simply remove all instances of __packed therefore. In order to verify that you got it right in all cases, build with '-Wpadded -Wpacked'. Arnd <>< - To unsubscribe from this list: send the line "unsubscribe linux-fsdevel= " in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html