Skip to content

Commit

Permalink
minix: remove the second argument of k[un]map_atomic()
Browse files Browse the repository at this point in the history
Signed-off-by: Cong Wang <[email protected]>
  • Loading branch information
Cong Wang authored and congwang committed Mar 20, 2012
1 parent 50bc9b6 commit 27a6d5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs/minix/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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:
Expand Down

0 comments on commit 27a6d5c

Please sign in to comment.