diff options
author | Josef Bacik <josef@toxicpanda.com> | 2024-04-03 13:57:30 -0400 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2024-05-07 21:31:10 +0200 |
commit | cd241a8f554c258e92a694f6aa07e90b89ddebe6 (patch) | |
tree | 7a24f5f60c7e90b1d696e08e9b5191af7d1a1215 /scripts/gdb/linux/tasks.py | |
parent | 0ab540995ae049f1536260b0f6124483e685b593 (diff) |
btrfs: move can_cow_file_range_inline() outside of the extent lock
These checks aren't reliant on the extent lock. Move this up into
cow_file_range_inline(), and then update encoded writes to call this
check before calling __cow_file_range_inline(). This will allow us to
skip the extent lock if we're not able to inline the given extent.
Reviewed-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'scripts/gdb/linux/tasks.py')
0 files changed, 0 insertions, 0 deletions