diff options
| author | Goldwyn Rodrigues <[email protected]> | 2020-09-25 15:36:38 -0500 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2020-12-08 15:53:37 +0100 |
| commit | eefa45f593792827771cfd845ab12fea5a7c7cd9 (patch) | |
| tree | a7e0e8671fb8dc313ad35e5a38db65acf8716ddf /tools/perf/scripts/python | |
| parent | fb8a7e941b1b4c1c2fa79b305d4c3fc41ad9bbda (diff) | |
btrfs: calculate num_pages, reserve_bytes once in btrfs_buffered_write
write_bytes can change in btrfs_check_nocow_lock(). Calculate variables
such as num_pages and reserve_bytes once we are sure of the value of
write_bytes so there is no need to re-calculate.
Reviewed-by: Josef Bacik <[email protected]>
Signed-off-by: Goldwyn Rodrigues <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions