summaryrefslogtreecommitdiffstats
path: root/fs/ecryptfs/read_write.c
diff options
context:
space:
mode:
authorCong Wang <amwang@redhat.com>2012-02-10 13:39:50 +0800
committerTyler Hicks <tyhicks@canonical.com>2012-02-16 16:06:27 -0600
commit465c9343c5b746ec2325a220fa3e50cc647d2db7 (patch)
treefbff1765ebac62a5910ba34c15deeb8729fce1be /fs/ecryptfs/read_write.c
parent545d680938be1e86a6c5250701ce9abaf360c495 (diff)
downloadlinux-465c9343c5b746ec2325a220fa3e50cc647d2db7.tar.gz
linux-465c9343c5b746ec2325a220fa3e50cc647d2db7.tar.bz2
linux-465c9343c5b746ec2325a220fa3e50cc647d2db7.zip
ecryptfs: remove the second argument of k[un]map_atomic()
Signed-off-by: Cong Wang <amwang@redhat.com> Signed-off-by: Tyler Hicks <tyhicks@canonical.com>
Diffstat (limited to 'fs/ecryptfs/read_write.c')
-rw-r--r--fs/ecryptfs/read_write.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ecryptfs/read_write.c b/fs/ecryptfs/read_write.c
index 5c0106f75775..b2a34a192f4f 100644
--- a/fs/ecryptfs/read_write.c
+++ b/fs/ecryptfs/read_write.c
@@ -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
@@ -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);