fuse: remove the second argument of k[un]map_atomic()
Signed-off-by: Cong Wang <amwang@redhat.com>
This commit is contained in:
parent
d4a23aee23
commit
2408f6ef6b
2 changed files with 4 additions and 4 deletions
|
@ -838,10 +838,10 @@ static int fuse_copy_page(struct fuse_copy_state *cs, struct page **pagep,
|
|||
}
|
||||
}
|
||||
if (page) {
|
||||
void *mapaddr = kmap_atomic(page, KM_USER0);
|
||||
void *mapaddr = kmap_atomic(page);
|
||||
void *buf = mapaddr + offset;
|
||||
offset += fuse_copy_do(cs, &buf, &count);
|
||||
kunmap_atomic(mapaddr, KM_USER0);
|
||||
kunmap_atomic(mapaddr);
|
||||
} else
|
||||
offset += fuse_copy_do(cs, NULL, &count);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue