Skip to content

Commit 3a1c46d

Browse files
committed
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 <[email protected]> Reviewed-by: Anand Jain <[email protected]> Signed-off-by: David Sterba <[email protected]>
1 parent 2b41599 commit 3a1c46d

File tree

4 files changed

+2
-8
lines changed

4 files changed

+2
-8
lines changed

fs/btrfs/extent_io.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -862,11 +862,6 @@ static int attach_extent_buffer_folio(struct extent_buffer *eb,
862862
return ret;
863863
}
864864

865-
int set_page_extent_mapped(struct page *page)
866-
{
867-
return set_folio_extent_mapped(page_folio(page));
868-
}
869-
870865
int set_folio_extent_mapped(struct folio *folio)
871866
{
872867
struct btrfs_fs_info *fs_info;

fs/btrfs/extent_io.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,6 @@ int btree_write_cache_pages(struct address_space *mapping,
248248
struct writeback_control *wbc);
249249
void btrfs_readahead(struct readahead_control *rac);
250250
int set_folio_extent_mapped(struct folio *folio);
251-
int set_page_extent_mapped(struct page *page);
252251
void clear_folio_extent_mapped(struct folio *folio);
253252

254253
struct extent_buffer *alloc_extent_buffer(struct btrfs_fs_info *fs_info,

fs/btrfs/free-space-cache.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ static int io_ctl_prepare_pages(struct btrfs_io_ctl *io_ctl, bool uptodate)
461461
return -ENOMEM;
462462
}
463463

464-
ret = set_page_extent_mapped(page);
464+
ret = set_folio_extent_mapped(page_folio(page));
465465
if (ret < 0) {
466466
unlock_page(page);
467467
put_page(page);

fs/btrfs/relocation.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2870,7 +2870,7 @@ static int relocate_one_folio(struct reloc_control *rc,
28702870

28712871
/*
28722872
* We could have lost folio private when we dropped the lock to read the
2873-
* folio above, make sure we set_page_extent_mapped here so we have any
2873+
* folio above, make sure we set_folio_extent_mapped() here so we have any
28742874
* of the subpage blocksize stuff we need in place.
28752875
*/
28762876
ret = set_folio_extent_mapped(folio);

0 commit comments

Comments
 (0)