]> 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)
commit643089ace855c190097e5bcad0922517a595b20d
tree07fc4583dbaea7110aaf112e2c298c6120f891b1
parent0234b9a949cb192fb34e552b924ce63720280c80
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