summaryrefslogtreecommitdiff
path: root/lib/fonts
diff options
context:
space:
mode:
authorQu Wenruo <wqu@suse.com>2023-12-12 05:28:38 +0300
committerDavid Sterba <dsterba@suse.com>2023-12-16 01:03:58 +0300
commita700ca5ec4ee9c2feb6e56469ce808f9769dc9f3 (patch)
treed376ea54b05b4aa5f88d95ab1ff992c7e99d39ee /lib/fonts
parent55151ea9ec1b40170dad5766c2d7f36105be42cd (diff)
downloadlinux-a700ca5ec4ee9c2feb6e56469ce808f9769dc9f3.tar.xz
btrfs: migrate various end io functions to folios
If we still go the old page based iterator functions, like bio_for_each_segment_all(), we can hit middle pages of a folio (compound page). In that case if we set any page flag on those middle pages, we can easily trigger VM_BUG_ON(), as for compound page flags, they should follow their flag policies (normally only set on leading or tail pages). To avoid such problem in the future full folio migration, here we do: - Change from bio_for_each_segment_all() to bio_for_each_folio_all() This completely removes the ability to access the middle page. - Add extra ASSERT()s for data read/write paths To ensure we only get single paged folio for data now. - Rename those end io functions to follow a certain schema * end_bbio_compressed_read() * end_bbio_compressed_write() These two endio functions don't set any page flags, as they use pages not mapped to any address space. They can be very good candidates for higher order folio testing. And they are shared between compression and encoded IO. * end_bbio_data_read() * end_bbio_data_write() * end_bbio_meta_read() * end_bbio_meta_write() The old function names are not unified: - end_bio_extent_writepage() - end_bio_extent_readpage() - extent_buffer_write_end_io() - extent_buffer_read_end_io() They share no schema on where the "end_*io" string should be, nor can be confusing just using "extent_buffer" and "extent" to distinguish data and metadata paths. Signed-off-by: Qu Wenruo <wqu@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'lib/fonts')
0 files changed, 0 insertions, 0 deletions