projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fbb5615
)
null_blk: use kmap_local_page() and kunmap_local()
author
Chaitanya Kulkarni
<kch@nvidia.com>
Thu, 30 Mar 2023 18:49:26 +0000
(11:49 -0700)
committer
Jens Axboe
<axboe@kernel.dk>
Sun, 2 Apr 2023 02:27:06 +0000
(20:27 -0600)
Replace the deprecated API kmap_atomic() and kunmap_atomic() with
kmap_local_page() and kunmap_local() in null_flush_cache_page().
Signed-off-by: Chaitanya Kulkarni <kch@nvidia.com>
Link:
https://lore.kernel.org/r/20230330184926.64209-2-kch@nvidia.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/null_blk/main.c
patch
|
blob
|
history
diff --git
a/drivers/block/null_blk/main.c
b/drivers/block/null_blk/main.c
index
87edb6d
..
1d914a8
100644
(file)
--- a/
drivers/block/null_blk/main.c
+++ b/
drivers/block/null_blk/main.c
@@
-1030,8
+1030,8
@@
static int null_flush_cache_page(struct nullb *nullb, struct nullb_page *c_page)
if (!t_page)
return -ENOMEM;
- src = kmap_
atomic
(c_page->page);
- dst = kmap_
atomic
(t_page->page);
+ src = kmap_
local_page
(c_page->page);
+ dst = kmap_
local_page
(t_page->page);
for (i = 0; i < PAGE_SECTORS;
i += (nullb->dev->blocksize >> SECTOR_SHIFT)) {
@@
-1043,8
+1043,8
@@
static int null_flush_cache_page(struct nullb *nullb, struct nullb_page *c_page)
}
}
- kunmap_
atomic
(dst);
- kunmap_
atomic
(src);
+ kunmap_
local
(dst);
+ kunmap_
local
(src);
ret = radix_tree_delete_item(&nullb->dev->cache, idx, c_page);
null_free_page(ret);