From: Linus Torvalds Subject: Re: [PATCH 29/35] Btrfs ioctl code Date: Thu, 15 Jan 2009 12:44:29 -0800 (PST) Message-ID: References: <1231387045-27838-1-git-send-email-chris.mason@oracle.com> <1231387045-27838-30-git-send-email-chris.mason@oracle.com> <20090116.032900.03617624.ryusuke@osrg.net> <1232051302.8269.99.camel@think.oraclecorp.com> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: Ryusuke Konishi , akpm@linux-foundation.org, linux-fsdevel@vger.kernel.org To: Chris Mason Return-path: Received: from smtp1.linux-foundation.org ([140.211.169.13]:53847 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934055AbZAOUog (ORCPT ); Thu, 15 Jan 2009 15:44:36 -0500 In-Reply-To: <1232051302.8269.99.camel@think.oraclecorp.com> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Thu, 15 Jan 2009, Chris Mason wrote: > > > > Grr. Different alignment for 64-bit values, coupled with "name" not > > having a size that is a multiple-of-eight. > > Will the fd and the start of the name get aligned differently? I'll fix > it up No, since the name is byte-aligned, the only thing that happens is that the total alignment (which comes from the alignment of __s64) affects the final size - think about having an array of those things, and the "sizeof()" gives you what the offset to the next entry in the array would be. So they'll look _exactly_ the same in all ways, except for padding at the end. Linus