diff options
author | 2024-11-07 14:35:07 +1030 | |
---|---|---|
committer | 2025-01-13 14:53:15 +0100 | |
commit | a883120b2d19630d3be56bc9649a71299ccbf95d (patch) | |
tree | 6e507ab65afaa41cb412bef01d94ffa1517a5c57 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | btrfs: improve the warning and error message for btrfs_remove_qgroup() (diff) | |
download | wireguard-linux-a883120b2d19630d3be56bc9649a71299ccbf95d.tar.xz wireguard-linux-a883120b2d19630d3be56bc9649a71299ccbf95d.zip |
btrfs: open-code btrfs_copy_from_user()
The function btrfs_copy_from_user() handles the folio dirtying for
buffered write. The original design is to allow that function to handle
multiple folios, but since commit c87c299776e4 ("btrfs: make buffered
write to copy one page a time") there is no need to support multiple
folios.
So here open-code btrfs_copy_from_user() to
copy_folio_from_iter_atomic() and flush_dcache_folio() calls.
The short-copy check and revert are still kept as-is.
Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions