diff options
author | Yu Kuai <yukuai3@huawei.com> | 2024-08-26 15:44:51 +0800 |
---|---|---|
committer | Song Liu <song@kernel.org> | 2024-08-27 12:43:16 -0700 |
commit | dab2ce5534ef7a7b8db70d1abd4225ee8a7798c7 (patch) | |
tree | e48e8bd9c15ddbeeb77f53b8945bea18aaf4d0cc /drivers/md/raid1-10.c | |
parent | 49f5f5e309e6127957babed7834f5a0e1022f936 (diff) | |
download | lwn-dab2ce5534ef7a7b8db70d1abd4225ee8a7798c7.tar.gz lwn-dab2ce5534ef7a7b8db70d1abd4225ee8a7798c7.zip |
md/md-bitmap: merge md_bitmap_enabled() 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-42-yukuai1@huaweicloud.com
Signed-off-by: Song Liu <song@kernel.org>
Diffstat (limited to 'drivers/md/raid1-10.c')
-rw-r--r-- | drivers/md/raid1-10.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/raid1-10.c b/drivers/md/raid1-10.c index e8207513eb1b..4378d3250bd7 100644 --- a/drivers/md/raid1-10.c +++ b/drivers/md/raid1-10.c @@ -140,7 +140,7 @@ static inline bool raid1_add_bio_to_plug(struct mddev *mddev, struct bio *bio, * If bitmap is not enabled, it's safe to submit the io directly, and * this can get optimal performance. */ - if (!md_bitmap_enabled(mddev->bitmap)) { + if (!mddev->bitmap_ops->enabled(mddev)) { raid1_submit_write(bio); return true; } |