aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <[email protected]>2020-10-04 19:04:26 +0100
committerDavid Sterba <[email protected]>2020-11-05 13:01:42 +0100
commita1fbc6750e212c5675a4e48d7f51d44607eb8756 (patch)
tree93877e687ca82da0c30915921bdccee66f6ebf22 /tools/perf/util/trace-event-scripting.c
parentd5c8238849e7bae6063dfc16c08ed62cee7ee688 (diff)
btrfs: fix potential overflow in cluster_pages_for_defrag on 32bit arch
On 32-bit systems, this shift will overflow for files larger than 4GB as start_index is unsigned long while the calls to btrfs_delalloc_*_space expect u64. CC: [email protected] # 4.4+ Fixes: df480633b891 ("btrfs: extent-tree: Switch to new delalloc space reserve and release") Reviewed-by: Josef Bacik <[email protected]> Signed-off-by: Matthew Wilcox (Oracle) <[email protected]> Reviewed-by: David Sterba <[email protected]> [ define the variable instead of repeating the shift ] Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions