aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorEric Biggers <[email protected]>2017-05-24 18:05:29 -0400
committerTheodore Ts'o <[email protected]>2017-05-24 18:05:29 -0400
commite5465795cac48233c9b606a7a419f4190a91851e (patch)
tree94f07f19cf0f86b5586989863069468862873708 /tools/perf/util/scripting-engines/trace-event-python.c
parent624327f8794704c5066b11a52f9da6a09dce7f9a (diff)
ext4: fix off-by-one error when writing back pages before dio read
The 'lend' argument of filemap_write_and_wait_range() is inclusive, so we need to subtract 1 from pos + count. Note that 'count' is guaranteed to be nonzero since ext4_file_read_iter() returns early when given a 0 count. Fixes: 16c54688592c ("ext4: Allow parallel DIO reads") Signed-off-by: Eric Biggers <[email protected]> Signed-off-by: Theodore Ts'o <[email protected]> Reviewed-by: Jan Kara <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions