Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 291814
b: refs/heads/master
c: 27a6d5c
h: refs/heads/master
v: v3
  • Loading branch information
Cong Wang authored and Cong Wang committed Mar 20, 2012
1 parent a591dad commit af02a18
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 50bc9b65b6e32f146c3c9812a9d62fe7ff518b5a
refs/heads/master: 27a6d5c742ceff68b09396bb99cd6344afa85330
4 changes: 2 additions & 2 deletions trunk/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 af02a18

Please sign in to comment.