]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: fix structs where bitfields and spinlock/atomic share 8B word
authorDavid Sterba <dsterba@suse.cz>
Thu, 26 Jan 2012 20:01:12 +0000 (15:01 -0500)
committerDavid Sterba <dsterba@suse.cz>
Wed, 15 Feb 2012 15:40:25 +0000 (16:40 +0100)
commit0fea0bc0933332fc4c07e2a29f6aab00c87d8ba6
treef86a4875ac874cd3ddd0cc2eae85701e87105a72
parent39f04bf6c46105c19f5e8b4df96ba97a1aa05b54
btrfs: fix structs where bitfields and spinlock/atomic share 8B word

On ia64, powerpc64 and sparc64 the bitfield is modified through a RMW cycle and current
gcc rewrites the adjacent 4B word, which in case of a spinlock or atomic has
disaterous effect.

https://lkml.org/lkml/2012/2/1/220

Signed-off-by: David Sterba <dsterba@suse.cz>
fs/btrfs/ctree.h
fs/btrfs/extent_map.h