mm: remove the second argument of k[un]map_atomic()

Signed-off-by: Cong Wang <amwang@redhat.com>
This commit is contained in:
Cong Wang
2011-11-25 23:14:39 +08:00
committed by Cong Wang
parent c3eede8e0a
commit 9b04c5fec4
7 changed files with 35 additions and 35 deletions
+4 -4
View File
@@ -1906,9 +1906,9 @@ static int aligned_vread(char *buf, char *addr, unsigned long count)
* we can expect USER0 is not used (see vread/vwrite's
* function description)
*/
void *map = kmap_atomic(p, KM_USER0);
void *map = kmap_atomic(p);
memcpy(buf, map + offset, length);
kunmap_atomic(map, KM_USER0);
kunmap_atomic(map);
} else
memset(buf, 0, length);
@@ -1945,9 +1945,9 @@ static int aligned_vwrite(char *buf, char *addr, unsigned long count)
* we can expect USER0 is not used (see vread/vwrite's
* function description)
*/
void *map = kmap_atomic(p, KM_USER0);
void *map = kmap_atomic(p);
memcpy(map + offset, buf, length);
kunmap_atomic(map, KM_USER0);
kunmap_atomic(map);
}
addr += length;
buf += length;