mirror of
https://github.com/torvalds/linux.git
synced 2026-05-22 22:22:08 +02:00
btrfs: open code set_page_extent_mapped()
The function set_page_extent_mapped() is now a simple wrapper so use the folio helper. Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Reviewed-by: Anand Jain <anand.jain@oracle.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
2b41599bff
commit
3a1c46dbc9
|
|
@ -862,11 +862,6 @@ static int attach_extent_buffer_folio(struct extent_buffer *eb,
|
|||
return ret;
|
||||
}
|
||||
|
||||
int set_page_extent_mapped(struct page *page)
|
||||
{
|
||||
return set_folio_extent_mapped(page_folio(page));
|
||||
}
|
||||
|
||||
int set_folio_extent_mapped(struct folio *folio)
|
||||
{
|
||||
struct btrfs_fs_info *fs_info;
|
||||
|
|
|
|||
|
|
@ -248,7 +248,6 @@ int btree_write_cache_pages(struct address_space *mapping,
|
|||
struct writeback_control *wbc);
|
||||
void btrfs_readahead(struct readahead_control *rac);
|
||||
int set_folio_extent_mapped(struct folio *folio);
|
||||
int set_page_extent_mapped(struct page *page);
|
||||
void clear_folio_extent_mapped(struct folio *folio);
|
||||
|
||||
struct extent_buffer *alloc_extent_buffer(struct btrfs_fs_info *fs_info,
|
||||
|
|
|
|||
|
|
@ -461,7 +461,7 @@ static int io_ctl_prepare_pages(struct btrfs_io_ctl *io_ctl, bool uptodate)
|
|||
return -ENOMEM;
|
||||
}
|
||||
|
||||
ret = set_page_extent_mapped(page);
|
||||
ret = set_folio_extent_mapped(page_folio(page));
|
||||
if (ret < 0) {
|
||||
unlock_page(page);
|
||||
put_page(page);
|
||||
|
|
|
|||
|
|
@ -2870,7 +2870,7 @@ static int relocate_one_folio(struct reloc_control *rc,
|
|||
|
||||
/*
|
||||
* We could have lost folio private when we dropped the lock to read the
|
||||
* folio above, make sure we set_page_extent_mapped here so we have any
|
||||
* folio above, make sure we set_folio_extent_mapped() here so we have any
|
||||
* of the subpage blocksize stuff we need in place.
|
||||
*/
|
||||
ret = set_folio_extent_mapped(folio);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user