mirror of
https://github.com/torvalds/linux.git
synced 2024-12-26 21:02:19 +00:00
xen: Convert kmap() to kmap_local_page()
kmap() is being deprecated and these usages are all local to the thread so there is no reason kmap_local_page() can't be used. Replace kmap() calls with kmap_local_page(). Signed-off-by: Alaa Mohamed <eng.alaamohamedsoliman.am@gmail.com> Reviewed-by: Juergen Gross <jgross@suse.com> Link: https://lore.kernel.org/r/20220419234328.10346-1-eng.alaamohamedsoliman.am@gmail.com Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
This commit is contained in:
parent
262fc47ac1
commit
f31076a6b2
@ -178,9 +178,9 @@ static void __del_gref(struct gntalloc_gref *gref)
|
||||
unsigned long addr;
|
||||
|
||||
if (gref->notify.flags & UNMAP_NOTIFY_CLEAR_BYTE) {
|
||||
uint8_t *tmp = kmap(gref->page);
|
||||
uint8_t *tmp = kmap_local_page(gref->page);
|
||||
tmp[gref->notify.pgoff] = 0;
|
||||
kunmap(gref->page);
|
||||
kunmap_local(tmp);
|
||||
}
|
||||
if (gref->notify.flags & UNMAP_NOTIFY_SEND_EVENT) {
|
||||
notify_remote_via_evtchn(gref->notify.event);
|
||||
|
Loading…
Reference in New Issue
Block a user