mirror of
https://github.com/torvalds/linux.git
synced 2024-12-30 14:52:05 +00:00
minix: remove the second argument of k[un]map_atomic()
Signed-off-by: Cong Wang <amwang@redhat.com>
This commit is contained in:
parent
50bc9b65b6
commit
27a6d5c742
@ -335,7 +335,7 @@ int minix_make_empty(struct inode *inode, struct inode *dir)
|
||||
goto fail;
|
||||
}
|
||||
|
||||
kaddr = kmap_atomic(page, KM_USER0);
|
||||
kaddr = kmap_atomic(page);
|
||||
memset(kaddr, 0, PAGE_CACHE_SIZE);
|
||||
|
||||
if (sbi->s_version == MINIX_V3) {
|
||||
@ -355,7 +355,7 @@ int minix_make_empty(struct inode *inode, struct inode *dir)
|
||||
de->inode = dir->i_ino;
|
||||
strcpy(de->name, "..");
|
||||
}
|
||||
kunmap_atomic(kaddr, KM_USER0);
|
||||
kunmap_atomic(kaddr);
|
||||
|
||||
err = dir_commit_chunk(page, 0, 2 * sbi->s_dirsize);
|
||||
fail:
|
||||
|
Loading…
Reference in New Issue
Block a user