summaryrefslogtreecommitdiff
path: root/drivers/scsi/scsi_debugfs.c
diff options
context:
space:
mode:
authorRoman Gushchin <guro@fb.com>2020-03-05 03:57:35 +0300
committerDavid Sterba <dsterba@suse.com>2020-03-23 19:01:55 +0300
commitf8e6608180a31cc72a23b74969da428da236dbd1 (patch)
tree60f597acf260e8e151afb084da02253a00c2b51f /drivers/scsi/scsi_debugfs.c
parent0078a9f941d2a994d756c330f225e888c31c768d (diff)
downloadlinux-f8e6608180a31cc72a23b74969da428da236dbd1.tar.xz
btrfs: implement migratepage callback for data pages
Currently btrfs doesn't provide a migratepage callback for data pages. It means that fallback_migrate_page() is used to migrate btrfs pages. fallback_migrate_page() cannot move dirty pages, instead it tries to flush them (in sync mode) or just fails (in async mode). In the sync mode pages which are scheduled to be processed by btrfs_writepage_fixup_worker() can't be effectively flushed by the migration code, because there is no established way to wait for the completion of the delayed work. It all leads to page migration failures. To fix it the patch implements a btrs-specific migratepage callback, which is similar to iomap_migrate_page() used by some other fs, except it does take care of the PagePrivate2 flag which is used for data ordering purposes. Reviewed-by: Chris Mason <clm@fb.com> Signed-off-by: Roman Gushchin <guro@fb.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'drivers/scsi/scsi_debugfs.c')
0 files changed, 0 insertions, 0 deletions