aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers.c
diff options
context:
space:
mode:
authorYu Kuai <[email protected]>2024-06-11 13:22:50 +0000
committerSong Liu <[email protected]>2024-06-12 16:32:57 +0000
commitbc49694a9e8fd1b36bca47d9a54ec8da8e39012f (patch)
tree7ddba0e45aa1494e138b0a47c5d61b58664efe17 /rust/helpers.c
parentmd: factor out helpers for different sync_action in md_do_sync() (diff)
downloadkernel-bc49694a9e8fd1b36bca47d9a54ec8da8e39012f.tar.gz
kernel-bc49694a9e8fd1b36bca47d9a54ec8da8e39012f.zip
md: pass in max_sectors for pers->sync_request()
For different sync_action, sync_thread will use different max_sectors, see details in md_sync_max_sectors(), currently both md_do_sync() and pers->sync_request() in eatch iteration have to get the same max_sectors. Hence pass in max_sectors for pers->sync_request() to prevent redundant code. Signed-off-by: Yu Kuai <[email protected]> Signed-off-by: Song Liu <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'rust/helpers.c')
0 files changed, 0 insertions, 0 deletions