aboutsummaryrefslogtreecommitdiffstats
path: root/fs/jbd2/commit.c
diff options
context:
space:
mode:
authorDarrick J. Wong <[email protected]>2015-10-15 14:30:36 +0000
committerTheodore Ts'o <[email protected]>2015-10-15 14:30:36 +0000
commit8595798ca34d186d39abcb277591e541776c0ef5 (patch)
tree2a88574a18479f688e837cf4169b58d438e9d5bf /fs/jbd2/commit.c
parentext4: use private version of page_zero_new_buffers() for data=journal mode (diff)
downloadkernel-8595798ca34d186d39abcb277591e541776c0ef5.tar.gz
kernel-8595798ca34d186d39abcb277591e541776c0ef5.zip
jbd2: gate checksum calculations on crc driver presence, not sb flags
Change the journal's checksum functions to gate on whether or not the crc32c driver is loaded, and gate the loading on the superblock bits. This prevents a journal crash if someone loads a journal in no-csum mode and then randomizes the superblock, thus flipping on the feature bits. Tested-By: Nikolay Borisov <[email protected]> Reported-by: Nikolay Borisov <[email protected]> Signed-off-by: Darrick J. Wong <[email protected]> Signed-off-by: Theodore Ts'o <[email protected]>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions