Lines Matching defs:rc
63 int rc;
65 rc = ecryptfs_encrypt_page(page);
66 if (rc) {
75 return rc;
124 int rc = 0;
143 rc = ecryptfs_read_xattr_region(
152 if (rc) {
154 "region; rc = [%d]\n", __func__, rc);
163 rc = ecryptfs_read_lower_page_segment(
167 if (rc) {
170 "file; rc = [%d]\n", __func__,
171 lower_offset, rc);
178 return rc;
194 int rc = 0;
201 rc = ecryptfs_read_lower_page_segment(page, page->index, 0,
206 rc = ecryptfs_copy_up_encrypted_with_header(page,
208 if (rc) {
212 "from the xattr into the header; rc = "
213 "[%d]\n", __func__, rc);
218 rc = ecryptfs_read_lower_page_segment(
221 if (rc) {
222 printk(KERN_ERR "Error reading page; rc = "
223 "[%d]\n", rc);
228 rc = ecryptfs_decrypt_page(page);
229 if (rc) {
231 "rc = [%d]\n", rc);
236 if (rc)
243 return rc;
286 int rc = 0;
299 rc = ecryptfs_read_lower_page_segment(
301 if (rc) {
303 "lower page segment; rc = [%d]\n",
304 __func__, rc);
311 rc = ecryptfs_copy_up_encrypted_with_header(
313 if (rc) {
318 "the xattr into the header; rc "
319 "= [%d]\n", __func__, rc);
325 rc = ecryptfs_read_lower_page_segment(
328 if (rc) {
330 "page; rc = [%d]\n",
331 __func__, rc);
338 rc = ecryptfs_decrypt_page(page);
339 if (rc) {
341 "at index [%ld]; rc = [%d]\n",
342 __func__, page->index, rc);
354 rc = ecryptfs_truncate(file->f_path.dentry,
356 if (rc) {
359 " rc = [%d]\n", __func__,
360 prev_page_end_size, rc);
371 return rc;
384 int rc;
388 rc = -ENOMEM;
392 rc = ecryptfs_write_lower(ecryptfs_inode, file_size_virt, 0,
395 if (rc < 0)
397 "rc = [%d]\n", __func__, rc);
399 rc = 0;
401 return rc;
413 int rc;
418 rc = -ENOSYS;
425 rc = -ENOMEM;
434 rc = lower_inode->i_op->setxattr(lower_dentry, ECRYPTFS_XATTR_NAME,
437 if (rc)
439 "to lower file xattr; rc = [%d]\n", rc);
442 return rc;
482 int rc;
493 rc = ecryptfs_write_lower_page_segment(ecryptfs_inode, page, 0,
495 if (!rc) {
496 rc = copied;
503 rc = fill_zeros_to_end_of_page(page, to);
504 if (rc) {
509 rc = ecryptfs_encrypt_page(page);
510 if (rc) {
520 rc = ecryptfs_write_inode_size_to_metadata(ecryptfs_inode);
521 if (rc)
523 "rc = [%d]\n", rc);
525 rc = copied;
529 return rc;
534 int rc = 0;
541 rc = lower_inode->i_mapping->a_ops->bmap(lower_inode->i_mapping,
543 return rc;