aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-raid.c
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2018-08-01 18:20:50 -0400
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2018-08-01 18:49:39 -0400
commite64e4018d572710c44f42c923d4ac059f0a23320 (patch)
treeaae285c6a7fa0b7566de31313683b57b38f821b2 /drivers/md/dm-raid.c
parent5cc9cdf631da804510d2d3ab1d97f3d9dd8d632d (diff)
md: Avoid namespace collision with bitmap API
bitmap API (include/linux/bitmap.h) has 'bitmap' prefix for its methods. On the other hand MD bitmap API is special case. Adding 'md' prefix to it to avoid name space collision. No functional changes intended. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Acked-by: Shaohua Li <shli@kernel.org> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/md/dm-raid.c')
-rw-r--r--drivers/md/dm-raid.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/md/dm-raid.c b/drivers/md/dm-raid.c
index 6f823f44b4aa..e0acbcefb2ba 100644
--- a/drivers/md/dm-raid.c
+++ b/drivers/md/dm-raid.c
@@ -3859,7 +3859,7 @@ static int __load_dirty_region_bitmap(struct raid_set *rs)
3859 /* Try loading the bitmap unless "raid0", which does not have one */ 3859 /* Try loading the bitmap unless "raid0", which does not have one */
3860 if (!rs_is_raid0(rs) && 3860 if (!rs_is_raid0(rs) &&
3861 !test_and_set_bit(RT_FLAG_RS_BITMAP_LOADED, &rs->runtime_flags)) { 3861 !test_and_set_bit(RT_FLAG_RS_BITMAP_LOADED, &rs->runtime_flags)) {
3862 r = bitmap_load(&rs->md); 3862 r = md_bitmap_load(&rs->md);
3863 if (r) 3863 if (r)
3864 DMERR("Failed to load bitmap"); 3864 DMERR("Failed to load bitmap");
3865 } 3865 }
@@ -3987,8 +3987,8 @@ static int raid_preresume(struct dm_target *ti)
3987 /* Resize bitmap to adjust to changed region size (aka MD bitmap chunksize) */ 3987 /* Resize bitmap to adjust to changed region size (aka MD bitmap chunksize) */
3988 if (test_bit(RT_FLAG_RS_BITMAP_LOADED, &rs->runtime_flags) && mddev->bitmap && 3988 if (test_bit(RT_FLAG_RS_BITMAP_LOADED, &rs->runtime_flags) && mddev->bitmap &&
3989 mddev->bitmap_info.chunksize != to_bytes(rs->requested_bitmap_chunk_sectors)) { 3989 mddev->bitmap_info.chunksize != to_bytes(rs->requested_bitmap_chunk_sectors)) {
3990 r = bitmap_resize(mddev->bitmap, mddev->dev_sectors, 3990 r = md_bitmap_resize(mddev->bitmap, mddev->dev_sectors,
3991 to_bytes(rs->requested_bitmap_chunk_sectors), 0); 3991 to_bytes(rs->requested_bitmap_chunk_sectors), 0);
3992 if (r) 3992 if (r)
3993 DMERR("Failed to resize bitmap"); 3993 DMERR("Failed to resize bitmap");
3994 } 3994 }