diff options
| author | Junxiao Bi <[email protected]> | 2021-07-29 21:53:38 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2021-07-30 17:14:39 +0000 |
| commit | f267aeb6dea5e468793e5b8eb6a9c72c0020d418 (patch) | |
| tree | f2bc93303f350ad4d755a0471556487eff397e75 /drivers/usb/cdns3/cdns3-ep0.c | |
| parent | lib/test_string.c: move string selftest in the Runtime Testing menu (diff) | |
| download | kernel-f267aeb6dea5e468793e5b8eb6a9c72c0020d418.tar.gz kernel-f267aeb6dea5e468793e5b8eb6a9c72c0020d418.zip | |
ocfs2: fix zero out valid data
If append-dio feature is enabled, direct-io write and fallocate could
run in parallel to extend file size, fallocate used "orig_isize" to
record i_size before taking "ip_alloc_sem", when
ocfs2_zeroout_partial_cluster() zeroout EOF blocks, i_size maybe already
extended by ocfs2_dio_end_io_write(), that will cause valid data zeroed
out.
Link: https://lkml.kernel.org/r/[email protected]
Fixes: 6bba4471f0cc ("ocfs2: fix data corruption by fallocate")
Signed-off-by: Junxiao Bi <[email protected]>
Reviewed-by: Joseph Qi <[email protected]>
Cc: Changwei Ge <[email protected]>
Cc: Gang He <[email protected]>
Cc: Joel Becker <[email protected]>
Cc: Jun Piao <[email protected]>
Cc: Mark Fasheh <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-ep0.c')
0 files changed, 0 insertions, 0 deletions
