]> git.baikalelectronics.ru Git - kernel.git/commit
jbd2: remove VLAIS usage from JBD2 code
authorBehan Webster <behanw@converseincode.com>
Thu, 8 Nov 2012 16:24:46 +0000 (11:24 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 8 Nov 2012 16:24:46 +0000 (11:24 -0500)
commitb53dba7d44bf7a918f7303d87b0147db9661acd6
tree07fc4583dbaea7110aaf112e2c298c6120f891b1
parent143fce63a20bb0507076d9c29c234f64b4b46e18
jbd2: remove VLAIS usage from JBD2 code

The use of variable length arrays in structs (VLAIS) in the Linux Kernel code
precludes the use of compilers which don't implement VLAIS (for instance the
Clang compiler). Since ctx is always a 32-bit CRC, hard coding a size of 4
bytes accomplishes the same thing without the use of VLAIS. This is the same
technique already employed in fs/ext4/ext4.h

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
Signed-off-by: Behan Webster <behanw@converseincode.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
include/linux/jbd2.h