Skip to content

Commit

Permalink
btrfs: make buffered write to copy one page a time
Browse files Browse the repository at this point in the history
Currently the btrfs_buffered_write() is preparing multiple page a time,
allowing a better performance.

But the current trend is to support larger folio as an optimization,
instead of implementing own multi-page optimization.

This is inspired by generic_perform_write(), which is copying one folio
a time.

Such change will prepare us to migrate to implement the write_begin()
and write_end() callbacks, and make every involved function a little
easier.

Signed-off-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
  • Loading branch information
adam900710 authored and kdave committed Nov 11, 2024
1 parent b1c5f6e commit c87c299
Show file tree
Hide file tree
Showing 3 changed files with 94 additions and 163 deletions.
Loading

0 comments on commit c87c299

Please sign in to comment.