Use flush_cache_vmap() after creating mappings. Also use BUG_ON() rather than if() BUG().
Attach a file by drag & drop or click to upload