]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: fix inline data updates with checksums enabled
authorTheodore Ts'o <tytso@mit.edu>
Tue, 10 Jul 2018 05:07:43 +0000 (01:07 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 10 Jul 2018 05:07:43 +0000 (01:07 -0400)
commita29ad3673bcb99dcaec357c33edd3c169b40cb74
tree6a8114ace853e46e790b2d3354601710045720e7
parent1db593e197248bb791e8fbbcdc5701fbeff9377e
ext4: fix inline data updates with checksums enabled

The inline data code was updating the raw inode directly; this is
problematic since if metadata checksums are enabled,
ext4_mark_inode_dirty() must be called to update the inode's checksum.
In addition, the jbd2 layer requires that get_write_access() be called
before the metadata buffer is modified.  Fix both of these problems.

https://bugzilla.kernel.org/show_bug.cgi?id=200443

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@vger.kernel.org
fs/ext4/inline.c
fs/ext4/inode.c