read_write.c (bdd1d2d3d251c65b74ac4493e08db18971c09240) | read_write.c (e13ec939e96b13e664bb6cee361cc976a0ee621a) |
---|---|
1/** 2 * eCryptfs: Linux filesystem encryption layer 3 * 4 * Copyright (C) 2007 International Business Machines Corp. 5 * Author(s): Michael A. Halcrow <mahalcro@us.ibm.com> 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License as --- 33 unchanged lines hidden (view full) --- 42 loff_t offset, size_t size) 43{ 44 struct file *lower_file; 45 ssize_t rc; 46 47 lower_file = ecryptfs_inode_to_private(ecryptfs_inode)->lower_file; 48 if (!lower_file) 49 return -EIO; | 1/** 2 * eCryptfs: Linux filesystem encryption layer 3 * 4 * Copyright (C) 2007 International Business Machines Corp. 5 * Author(s): Michael A. Halcrow <mahalcro@us.ibm.com> 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License as --- 33 unchanged lines hidden (view full) --- 42 loff_t offset, size_t size) 43{ 44 struct file *lower_file; 45 ssize_t rc; 46 47 lower_file = ecryptfs_inode_to_private(ecryptfs_inode)->lower_file; 48 if (!lower_file) 49 return -EIO; |
50 rc = kernel_write(lower_file, data, size, offset); | 50 rc = kernel_write(lower_file, data, size, &offset); |
51 mark_inode_dirty_sync(ecryptfs_inode); 52 return rc; 53} 54 55/** 56 * ecryptfs_write_lower_page_segment 57 * @ecryptfs_inode: The eCryptfs inode 58 * @page_for_lower: The page containing the data to be written to the --- 217 unchanged lines hidden --- | 51 mark_inode_dirty_sync(ecryptfs_inode); 52 return rc; 53} 54 55/** 56 * ecryptfs_write_lower_page_segment 57 * @ecryptfs_inode: The eCryptfs inode 58 * @page_for_lower: The page containing the data to be written to the --- 217 unchanged lines hidden --- |