Commit 27a6d5c7 authored by Cong Wang's avatar Cong Wang Committed by Cong Wang

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

Signed-off-by: default avatarCong Wang <amwang@redhat.com>
parent 50bc9b65
...@@ -335,7 +335,7 @@ int minix_make_empty(struct inode *inode, struct inode *dir) ...@@ -335,7 +335,7 @@ int minix_make_empty(struct inode *inode, struct inode *dir)
goto fail; goto fail;
} }
kaddr = kmap_atomic(page, KM_USER0); kaddr = kmap_atomic(page);
memset(kaddr, 0, PAGE_CACHE_SIZE); memset(kaddr, 0, PAGE_CACHE_SIZE);
if (sbi->s_version == MINIX_V3) { if (sbi->s_version == MINIX_V3) {
...@@ -355,7 +355,7 @@ int minix_make_empty(struct inode *inode, struct inode *dir) ...@@ -355,7 +355,7 @@ int minix_make_empty(struct inode *inode, struct inode *dir)
de->inode = dir->i_ino; de->inode = dir->i_ino;
strcpy(de->name, ".."); strcpy(de->name, "..");
} }
kunmap_atomic(kaddr, KM_USER0); kunmap_atomic(kaddr);
err = dir_commit_chunk(page, 0, 2 * sbi->s_dirsize); err = dir_commit_chunk(page, 0, 2 * sbi->s_dirsize);
fail: fail:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment