diff options
| author | Yu Kuai <yukuai3@huawei.com> | 2024-08-26 15:44:29 +0800 |
|---|---|---|
| committer | Song Liu <song@kernel.org> | 2024-08-27 10:14:16 -0700 |
| commit | 696936838bc18a761ed778910975d51cf2c35e3a (patch) | |
| tree | 96c4b334fe60a7b812bf5a211e818cd966d7e5a2 /drivers/md/raid1.c | |
| parent | fe59b34676b4ec6b48a7b436d3422fc9317e047a (diff) | |
md/md-bitmap: merge md_bitmap_status() into bitmap_operations
So that the implementation won't be exposed, and it'll be possible
to invent a new bitmap by replacing bitmap_operations.
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Link: https://lore.kernel.org/r/20240826074452.1490072-20-yukuai1@huaweicloud.com
Signed-off-by: Song Liu <song@kernel.org>
Diffstat (limited to 'drivers/md/raid1.c')
| -rw-r--r-- | drivers/md/raid1.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/raid1.c b/drivers/md/raid1.c index b6c4e44f9b4b..d490a9ac484f 100644 --- a/drivers/md/raid1.c +++ b/drivers/md/raid1.c @@ -1599,7 +1599,7 @@ static void raid1_write_request(struct mddev *mddev, struct bio *bio, * Not if there are too many, or cannot * allocate memory, or a reader on WriteMostly * is waiting for behind writes to flush */ - err = md_bitmap_get_stats(bitmap, &stats); + err = mddev->bitmap_ops->get_stats(bitmap, &stats); if (!err && write_behind && !stats.behind_wait && stats.behind_writes < max_write_behind) alloc_behind_master_bio(r1_bio, bio); |