From: Andi Kleen Date: Sun, 19 Jun 2011 22:35:30 +0000 Subject: Re: reorganized struct inode results in unaligned accesses Message-Id: List-Id: References: In-Reply-To: (Linus Torvalds's message of "Sun, 19 Jun 2011 09:51:24 -0700") MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Linus Torvalds Cc: Meelis Roos , Linux Kernel list , sparclinux@vger.kernel.org Linus Torvalds writes: > > Dang. I guess it needs to be made "unsigned long" again. Which is a > shame, because we only use a couple of bits from there, and "struct > inode" really is much too big already. In the past it was usually enough to just align it to alignof(unsigned long), not actually make it long. struct page went through this a long time ago. This could cause r-m-w races with the next field in theory, but assuming it's reasonably read-only (ie only set up at inode creation time) that should be fine. -Andi -- ak@linux.intel.com -- Speaking for myself only