You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
mm: remove the second argument of k[un]map_atomic()
Signed-off-by: Cong Wang <amwang@redhat.com>
This commit is contained in:
@@ -672,9 +672,9 @@ error:
|
||||
static u32 calc_checksum(struct page *page)
|
||||
{
|
||||
u32 checksum;
|
||||
void *addr = kmap_atomic(page, KM_USER0);
|
||||
void *addr = kmap_atomic(page);
|
||||
checksum = jhash2(addr, PAGE_SIZE / 4, 17);
|
||||
kunmap_atomic(addr, KM_USER0);
|
||||
kunmap_atomic(addr);
|
||||
return checksum;
|
||||
}
|
||||
|
||||
@@ -683,11 +683,11 @@ static int memcmp_pages(struct page *page1, struct page *page2)
|
||||
char *addr1, *addr2;
|
||||
int ret;
|
||||
|
||||
addr1 = kmap_atomic(page1, KM_USER0);
|
||||
addr2 = kmap_atomic(page2, KM_USER1);
|
||||
addr1 = kmap_atomic(page1);
|
||||
addr2 = kmap_atomic(page2);
|
||||
ret = memcmp(addr1, addr2, PAGE_SIZE);
|
||||
kunmap_atomic(addr2, KM_USER1);
|
||||
kunmap_atomic(addr1, KM_USER0);
|
||||
kunmap_atomic(addr2);
|
||||
kunmap_atomic(addr1);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user