Lines Matching refs:rc
53 int rc; in ecryptfs_writepage() local
55 rc = ecryptfs_encrypt_page(page); in ecryptfs_writepage()
56 if (rc) { in ecryptfs_writepage()
65 return rc; in ecryptfs_writepage()
114 int rc = 0; in ecryptfs_copy_up_encrypted_with_header() local
133 rc = ecryptfs_read_xattr_region( in ecryptfs_copy_up_encrypted_with_header()
142 if (rc) { in ecryptfs_copy_up_encrypted_with_header()
144 "region; rc = [%d]\n", __func__, rc); in ecryptfs_copy_up_encrypted_with_header()
153 rc = ecryptfs_read_lower_page_segment( in ecryptfs_copy_up_encrypted_with_header()
157 if (rc) { in ecryptfs_copy_up_encrypted_with_header()
161 lower_offset, rc); in ecryptfs_copy_up_encrypted_with_header()
168 return rc; in ecryptfs_copy_up_encrypted_with_header()
184 int rc = 0; in ecryptfs_readpage() local
187 rc = ecryptfs_read_lower_page_segment(page, page->index, 0, in ecryptfs_readpage()
192 rc = ecryptfs_copy_up_encrypted_with_header(page, in ecryptfs_readpage()
194 if (rc) { in ecryptfs_readpage()
199 "[%d]\n", __func__, rc); in ecryptfs_readpage()
204 rc = ecryptfs_read_lower_page_segment( in ecryptfs_readpage()
207 if (rc) { in ecryptfs_readpage()
209 "[%d]\n", rc); in ecryptfs_readpage()
214 rc = ecryptfs_decrypt_page(page); in ecryptfs_readpage()
215 if (rc) { in ecryptfs_readpage()
217 "rc = [%d]\n", rc); in ecryptfs_readpage()
222 if (rc) in ecryptfs_readpage()
229 return rc; in ecryptfs_readpage()
272 int rc = 0; in ecryptfs_write_begin() local
285 rc = ecryptfs_read_lower_page_segment( in ecryptfs_write_begin()
287 if (rc) { in ecryptfs_write_begin()
290 __func__, rc); in ecryptfs_write_begin()
297 rc = ecryptfs_copy_up_encrypted_with_header( in ecryptfs_write_begin()
299 if (rc) { in ecryptfs_write_begin()
305 "= [%d]\n", __func__, rc); in ecryptfs_write_begin()
311 rc = ecryptfs_read_lower_page_segment( in ecryptfs_write_begin()
314 if (rc) { in ecryptfs_write_begin()
317 __func__, rc); in ecryptfs_write_begin()
329 rc = ecryptfs_decrypt_page(page); in ecryptfs_write_begin()
330 if (rc) { in ecryptfs_write_begin()
334 __func__, page->index, rc); in ecryptfs_write_begin()
346 rc = ecryptfs_truncate(file->f_path.dentry, in ecryptfs_write_begin()
348 if (rc) { in ecryptfs_write_begin()
352 prev_page_end_size, rc); in ecryptfs_write_begin()
363 if (unlikely(rc)) { in ecryptfs_write_begin()
368 return rc; in ecryptfs_write_begin()
381 int rc; in ecryptfs_write_inode_size_to_header() local
385 rc = -ENOMEM; in ecryptfs_write_inode_size_to_header()
389 rc = ecryptfs_write_lower(ecryptfs_inode, file_size_virt, 0, in ecryptfs_write_inode_size_to_header()
392 if (rc < 0) in ecryptfs_write_inode_size_to_header()
394 "rc = [%d]\n", __func__, rc); in ecryptfs_write_inode_size_to_header()
396 rc = 0; in ecryptfs_write_inode_size_to_header()
398 return rc; in ecryptfs_write_inode_size_to_header()
410 int rc; in ecryptfs_write_inode_size_to_xattr() local
415 rc = -ENOSYS; in ecryptfs_write_inode_size_to_xattr()
420 rc = -ENOMEM; in ecryptfs_write_inode_size_to_xattr()
429 rc = __vfs_setxattr(lower_dentry, lower_inode, ECRYPTFS_XATTR_NAME, in ecryptfs_write_inode_size_to_xattr()
432 if (rc) in ecryptfs_write_inode_size_to_xattr()
434 "to lower file xattr; rc = [%d]\n", rc); in ecryptfs_write_inode_size_to_xattr()
437 return rc; in ecryptfs_write_inode_size_to_xattr()
473 int rc; in ecryptfs_write_end() local
478 rc = ecryptfs_write_lower_page_segment(ecryptfs_inode, page, 0, in ecryptfs_write_end()
480 if (!rc) { in ecryptfs_write_end()
481 rc = copied; in ecryptfs_write_end()
489 rc = 0; in ecryptfs_write_end()
495 rc = fill_zeros_to_end_of_page(page, to); in ecryptfs_write_end()
496 if (rc) { in ecryptfs_write_end()
501 rc = ecryptfs_encrypt_page(page); in ecryptfs_write_end()
502 if (rc) { in ecryptfs_write_end()
513 rc = ecryptfs_write_inode_size_to_metadata(ecryptfs_inode); in ecryptfs_write_end()
514 if (rc) in ecryptfs_write_end()
516 "rc = [%d]\n", rc); in ecryptfs_write_end()
518 rc = copied; in ecryptfs_write_end()
522 return rc; in ecryptfs_write_end()
527 int rc = 0; in ecryptfs_bmap() local
534 rc = lower_inode->i_mapping->a_ops->bmap(lower_inode->i_mapping, in ecryptfs_bmap()
536 return rc; in ecryptfs_bmap()