None of the checksum verification code schedules, so we can use the faster
kmap_atomic
Signed-off-by: Chris Mason <chris.mason@oracle.com>
} else {
ret = get_state_private(io_tree, start, &private);
}
- kaddr = kmap(page);
+ kaddr = kmap_atomic(page, KM_USER0);
if (ret)
goto zeroit;
if (csum != private)
goto zeroit;
- kunmap(page);
+ kunmap_atomic(kaddr, KM_USER0);
good:
/* if the io failure tree for this inode is non-empty,
* check to see if we've recovered from a failed IO
(unsigned long long)private);
memset(kaddr + offset, 1, end - start + 1);
flush_dcache_page(page);
- kunmap(page);
+ kunmap_atomic(kaddr, KM_USER0);
if (private == 0)
return 0;
return -EIO;