Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 287679
b: refs/heads/master
c: 465c934
h: refs/heads/master
i:
  287677: a8afe67
  287675: b27a7c4
  287671: 1b548ec
  287663: c6276c1
  287647: aa22db5
  287615: 98f07af
v: v3
  • Loading branch information
Cong Wang authored and Tyler Hicks committed Feb 16, 2012
1 parent d6bce8a commit 0325e3f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 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: 545d680938be1e86a6c5250701ce9abaf360c495
refs/heads/master: 465c9343c5b746ec2325a220fa3e50cc647d2db7
4 changes: 2 additions & 2 deletions trunk/fs/ecryptfs/mmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ ecryptfs_copy_up_encrypted_with_header(struct page *page,
/* This is a header extent */
char *page_virt;

page_virt = kmap_atomic(page, KM_USER0);
page_virt = kmap_atomic(page);
memset(page_virt, 0, PAGE_CACHE_SIZE);
/* TODO: Support more than one header extent */
if (view_extent_num == 0) {
Expand All @@ -163,7 +163,7 @@ ecryptfs_copy_up_encrypted_with_header(struct page *page,
crypt_stat,
&written);
}
kunmap_atomic(page_virt, KM_USER0);
kunmap_atomic(page_virt);
flush_dcache_page(page);
if (rc) {
printk(KERN_ERR "%s: Error reading xattr "
Expand Down
4 changes: 2 additions & 2 deletions trunk/fs/ecryptfs/read_write.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ int ecryptfs_write(struct inode *ecryptfs_inode, char *data, loff_t offset,
ecryptfs_page_idx, rc);
goto out;
}
ecryptfs_page_virt = kmap_atomic(ecryptfs_page, KM_USER0);
ecryptfs_page_virt = kmap_atomic(ecryptfs_page);

/*
* pos: where we're now writing, offset: where the request was
Expand All @@ -179,7 +179,7 @@ int ecryptfs_write(struct inode *ecryptfs_inode, char *data, loff_t offset,
(data + data_offset), num_bytes);
data_offset += num_bytes;
}
kunmap_atomic(ecryptfs_page_virt, KM_USER0);
kunmap_atomic(ecryptfs_page_virt);
flush_dcache_page(ecryptfs_page);
SetPageUptodate(ecryptfs_page);
unlock_page(ecryptfs_page);
Expand Down

0 comments on commit 0325e3f

Please sign in to comment.