projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0757f61
)
ecryptfs: don't open-code kernel_read()
author
Al Viro
<viro@zeniv.linux.org.uk>
Wed, 8 May 2013 02:28:48 +0000
(22:28 -0400)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Thu, 9 May 2013 17:39:58 +0000
(13:39 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/ecryptfs/read_write.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/ecryptfs/read_write.c
b/fs/ecryptfs/read_write.c
index 6a160539cd23cabfd2d7ecfa8adb63409346e8d2..09fe622274e44df8fcf4bc040505abea95b345cf 100644
(file)
--- a/
fs/ecryptfs/read_write.c
+++ b/
fs/ecryptfs/read_write.c
@@
-232,17
+232,10
@@
int ecryptfs_read_lower(char *data, loff_t offset, size_t size,
struct inode *ecryptfs_inode)
{
struct file *lower_file;
- mm_segment_t fs_save;
- ssize_t rc;
-
lower_file = ecryptfs_inode_to_private(ecryptfs_inode)->lower_file;
if (!lower_file)
return -EIO;
- fs_save = get_fs();
- set_fs(get_ds());
- rc = vfs_read(lower_file, data, size, &offset);
- set_fs(fs_save);
- return rc;
+ return kernel_read(lower_file, offset, data, size);
}
/**