Lines Matching +full:lower +full:- +full:case
1 // SPDX-License-Identifier: GPL-2.0-or-later
19 * @offset: Byte offset in the lower file to which to write the data
20 * @size: Number of bytes from @data to write at @offset in the lower
23 * Write data to the lower file.
33 lower_file = ecryptfs_inode_to_private(ecryptfs_inode)->lower_file; in ecryptfs_write_lower()
35 return -EIO; in ecryptfs_write_lower()
45 * lower file
49 * lower file
53 * the contents of @page_for_lower to the lower inode.
55 * Returns zero on success; non-zero otherwise
65 offset = ((((loff_t)page_for_lower->index) << PAGE_SHIFT) in ecryptfs_write_lower_page_segment()
84 * eCryptfs inode page cache. This is done on a page-by-page, and then
85 * by an extent-by-extent, basis; individual extents are encrypted and
86 * written to the lower page cache (via VFS writes). This function
87 * takes care of all the address translation to locations in the lower
91 * Returns zero on success; non-zero otherwise
104 crypt_stat = &ecryptfs_inode_to_private(ecryptfs_inode)->crypt_stat; in ecryptfs_write()
107 * at the current size - we'll fill in zeros from there. in ecryptfs_write()
116 size_t num_bytes = (PAGE_SIZE - start_offset_in_page); in ecryptfs_write()
117 loff_t total_remaining_bytes = ((offset + size) - pos); in ecryptfs_write()
120 rc = -EINTR; in ecryptfs_write()
128 loff_t total_remaining_zeros = (offset - pos); in ecryptfs_write()
149 * If we're in a fresh page beyond eof, zero it in either case in ecryptfs_write()
156 PAGE_SIZE - start_offset_in_page); in ecryptfs_write()
170 if (crypt_stat->flags & ECRYPTFS_ENCRYPTED) in ecryptfs_write()
187 if (crypt_stat->flags & ECRYPTFS_ENCRYPTED) { in ecryptfs_write()
209 * @offset: Byte offset in the lower file from which to read the data
210 * @size: Number of bytes to read from @offset of the lower file and
214 * Read @size bytes of data at byte offset @offset from the lower
223 lower_file = ecryptfs_inode_to_private(ecryptfs_inode)->lower_file; in ecryptfs_read_lower()
225 return -EIO; in ecryptfs_read_lower()
242 * the contents of @page_for_ecryptfs from the lower inode.
244 * Returns zero on success; non-zero otherwise