diff options
| author | Yu Kuai <[email protected]> | 2024-08-26 07:44:36 +0000 |
|---|---|---|
| committer | Song Liu <[email protected]> | 2024-08-27 17:14:17 +0000 |
| commit | 9be669bd1b031f40b35034223517cf886e7a7fcc (patch) | |
| tree | 34432341e8c325ebf68c0ed6426d3026584a637a /drivers/md/raid1.c | |
| parent | md/md-bitmap: merge md_bitmap_start_sync() into bitmap_operations (diff) | |
| download | kernel-9be669bd1b031f40b35034223517cf886e7a7fcc.tar.gz kernel-9be669bd1b031f40b35034223517cf886e7a7fcc.zip | |
md/md-bitmap: remove the parameter 'aborted' for md_bitmap_end_sync()
For internal callers, aborted are always set to false, while for
external callers, aborted are always set to true.
Hence there is no need to always pass in true for exported api.
Signed-off-by: Yu Kuai <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Song Liu <[email protected]>
Diffstat (limited to 'drivers/md/raid1.c')
| -rw-r--r-- | drivers/md/raid1.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/md/raid1.c b/drivers/md/raid1.c index 8b83dd83e15f..5ee929c89cb1 100644 --- a/drivers/md/raid1.c +++ b/drivers/md/raid1.c @@ -2026,7 +2026,7 @@ static void abort_sync_write(struct mddev *mddev, struct r1bio *r1_bio) /* make sure these bits don't get cleared. */ do { - md_bitmap_end_sync(mddev->bitmap, s, &sync_blocks, 1); + md_bitmap_end_sync(mddev->bitmap, s, &sync_blocks); s += sync_blocks; sectors_to_go -= sync_blocks; } while (sectors_to_go > 0); @@ -2773,7 +2773,7 @@ static sector_t raid1_sync_request(struct mddev *mddev, sector_t sector_nr, */ if (mddev->curr_resync < max_sector) /* aborted */ md_bitmap_end_sync(mddev->bitmap, mddev->curr_resync, - &sync_blocks, 1); + &sync_blocks); else /* completed sync */ conf->fullsync = 0; |
