• Qu Wenruo's avatar
    btrfs: migrate extent_buffer::pages[] to folio · 082d5bb9
    Qu Wenruo authored
    For now extent_buffer::pages[] are still only accepting single page
    pointer, thus we can migrate to folios pretty easily.
    
    As for single page, page and folio are 1:1 mapped, including their page
    flags.
    
    This patch would just do the conversion from struct page to struct
    folio, providing the first step to higher order folio in the future.
    
    This conversion is pretty simple:
    
    - extent_buffer::pages[] -> extent_buffer::folios[]
    
    - page_address(eb->pages[i]) -> folio_address(eb->pages[i])
    
    - eb->pages[i] -> folio_page(eb->folios[i], 0)
    
    There would be more specific cleanups preparing for the incoming higher
    order folio support.
    Signed-off-by: default avatarQu Wenruo <wqu@suse.com>
    Reviewed-by: default avatarDavid Sterba <dsterba@suse.com>
    Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
    082d5bb9
extent_io.h 10.3 KB