Skip to content

Commit

Permalink
xfs: rename xfs_iomap_swapfile_activate to xfs_vm_swap_activate
Browse files Browse the repository at this point in the history
Match the method name and the naming convention or address_space
operations.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
  • Loading branch information
Christoph Hellwig authored and Carlos Maiolino committed Feb 14, 2025
1 parent 9f09020 commit 3cd6a80
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fs/xfs/xfs_aops.c
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ xfs_vm_readahead(
}

static int
xfs_iomap_swapfile_activate(
xfs_vm_swap_activate(
struct swap_info_struct *sis,
struct file *swap_file,
sector_t *span)
Expand All @@ -549,11 +549,11 @@ const struct address_space_operations xfs_address_space_operations = {
.migrate_folio = filemap_migrate_folio,
.is_partially_uptodate = iomap_is_partially_uptodate,
.error_remove_folio = generic_error_remove_folio,
.swap_activate = xfs_iomap_swapfile_activate,
.swap_activate = xfs_vm_swap_activate,
};

const struct address_space_operations xfs_dax_aops = {
.writepages = xfs_dax_writepages,
.dirty_folio = noop_dirty_folio,
.swap_activate = xfs_iomap_swapfile_activate,
.swap_activate = xfs_vm_swap_activate,
};

0 comments on commit 3cd6a80

Please sign in to comment.