All of lore.kernel.org
 help / color / mirror / Atom feed
* reorganized struct inode results in unaligned accesses
@ 2011-06-19 16:33 ` Meelis Roos
  0 siblings, 0 replies; 10+ messages in thread
From: Meelis Roos @ 2011-06-19 16:33 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: Linux Kernel list, sparclinux

A week ago I noticed that in 3.0.0-rc3, sparc64 machines log a lot of 
unaligned accesses in different vfs functions in dmesg. I reported but 
obviously not well enough. Today I had a look at it and found the 
reason.

Commit 13e12d14e2dccc7995b8f15a5678a338ab4e6a8c (vfs: reorganize 'struct 
inode' layout a bit) changes i_state to be unsigned int instead of 
unsigned long. This is the cause of unaligned accesses on sparc64 and 
maybe others. Changing it back to unsigned long fixes the warnings but I 
did not look at the layout of the resulting struct - might leave a hole 
there.

-- 
Meelis Roos (mroos@linux.ee)

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2011-06-19 23:14 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-19 16:33 reorganized struct inode results in unaligned accesses Meelis Roos
2011-06-19 16:33 ` Meelis Roos
2011-06-19 16:51 ` Linus Torvalds
2011-06-19 16:51   ` Linus Torvalds
2011-06-19 22:35   ` Andi Kleen
2011-06-19 22:35     ` Andi Kleen
2011-06-19 23:01     ` David Miller
2011-06-19 23:01       ` David Miller
2011-06-19 23:14       ` Andi Kleen
2011-06-19 23:14         ` Andi Kleen

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.