diff options
author | Goldwyn Rodrigues <rgoldwyn@suse.com> | 2020-09-25 15:36:38 -0500 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2020-12-08 15:53:37 +0100 |
commit | eefa45f593792827771cfd845ab12fea5a7c7cd9 (patch) | |
tree | a7e0e8671fb8dc313ad35e5a38db65acf8716ddf /fs/btrfs/extent_io.c | |
parent | fb8a7e941b1b4c1c2fa79b305d4c3fc41ad9bbda (diff) | |
download | lwn-eefa45f593792827771cfd845ab12fea5a7c7cd9.tar.gz lwn-eefa45f593792827771cfd845ab12fea5a7c7cd9.zip |
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 <josef@toxicpanda.com>
Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/extent_io.c')
0 files changed, 0 insertions, 0 deletions