• Home
  • Raw
  • Download

Lines Matching refs:rc

133 	int rc;  in ecryptfs_do_unlink()  local
140 rc = -EINVAL; in ecryptfs_do_unlink()
142 rc = -EINVAL; in ecryptfs_do_unlink()
144 rc = vfs_unlink(lower_dir_inode, lower_dentry, NULL); in ecryptfs_do_unlink()
145 if (rc) { in ecryptfs_do_unlink()
146 printk(KERN_ERR "Error in vfs_unlink; rc = [%d]\n", rc); in ecryptfs_do_unlink()
155 if (!rc) in ecryptfs_do_unlink()
157 return rc; in ecryptfs_do_unlink()
176 int rc; in ecryptfs_do_create() local
183 rc = vfs_create(d_inode(lower_dir_dentry), lower_dentry, mode, true); in ecryptfs_do_create()
184 if (rc) { in ecryptfs_do_create()
186 "rc = [%d]\n", __func__, rc); in ecryptfs_do_create()
187 inode = ERR_PTR(rc); in ecryptfs_do_create()
216 int rc = 0; in ecryptfs_initialize_file() local
224 rc = ecryptfs_new_file_context(ecryptfs_inode); in ecryptfs_initialize_file()
225 if (rc) { in ecryptfs_initialize_file()
227 "context; rc = [%d]\n", rc); in ecryptfs_initialize_file()
230 rc = ecryptfs_get_lower_file(ecryptfs_dentry, ecryptfs_inode); in ecryptfs_initialize_file()
231 if (rc) { in ecryptfs_initialize_file()
235 ecryptfs_dentry, rc); in ecryptfs_initialize_file()
238 rc = ecryptfs_write_metadata(ecryptfs_dentry, ecryptfs_inode); in ecryptfs_initialize_file()
239 if (rc) in ecryptfs_initialize_file()
240 printk(KERN_ERR "Error writing headers; rc = [%d]\n", rc); in ecryptfs_initialize_file()
243 return rc; in ecryptfs_initialize_file()
261 int rc; in ecryptfs_create() local
268 rc = PTR_ERR(ecryptfs_inode); in ecryptfs_create()
273 rc = ecryptfs_initialize_file(ecryptfs_dentry, ecryptfs_inode); in ecryptfs_create()
274 if (rc) { in ecryptfs_create()
282 return rc; in ecryptfs_create()
288 int rc; in ecryptfs_i_size_read() local
290 rc = ecryptfs_get_lower_file(dentry, inode); in ecryptfs_i_size_read()
291 if (rc) { in ecryptfs_i_size_read()
295 dentry, rc); in ecryptfs_i_size_read()
296 return rc; in ecryptfs_i_size_read()
304 rc = ecryptfs_read_and_validate_header_region(inode); in ecryptfs_i_size_read()
306 if (rc) { in ecryptfs_i_size_read()
307 rc = ecryptfs_read_and_validate_xattr_region(dentry, inode); in ecryptfs_i_size_read()
308 if (!rc) in ecryptfs_i_size_read()
325 int rc = 0; in ecryptfs_lookup_interpose() local
361 rc = ecryptfs_i_size_read(dentry, inode); in ecryptfs_lookup_interpose()
362 if (rc) { in ecryptfs_lookup_interpose()
364 return ERR_PTR(rc); in ecryptfs_lookup_interpose()
392 int rc = 0; in ecryptfs_lookup() local
399 rc = ecryptfs_encrypt_and_encode_filename( in ecryptfs_lookup()
402 if (rc) { in ecryptfs_lookup()
404 "filename; rc = [%d]\n", __func__, rc); in ecryptfs_lookup()
405 return ERR_PTR(rc); in ecryptfs_lookup()
431 int rc; in ecryptfs_link() local
439 rc = vfs_link(lower_old_dentry, d_inode(lower_dir_dentry), in ecryptfs_link()
441 if (rc || d_really_is_negative(lower_new_dentry)) in ecryptfs_link()
443 rc = ecryptfs_interpose(lower_new_dentry, new_dentry, dir->i_sb); in ecryptfs_link()
444 if (rc) in ecryptfs_link()
455 return rc; in ecryptfs_link()
466 int rc; in ecryptfs_symlink() local
478 rc = ecryptfs_encrypt_and_encode_filename(&encoded_symname, in ecryptfs_symlink()
482 if (rc) in ecryptfs_symlink()
484 rc = vfs_symlink(d_inode(lower_dir_dentry), lower_dentry, in ecryptfs_symlink()
487 if (rc || d_really_is_negative(lower_dentry)) in ecryptfs_symlink()
489 rc = ecryptfs_interpose(lower_dentry, dentry, dir->i_sb); in ecryptfs_symlink()
490 if (rc) in ecryptfs_symlink()
499 return rc; in ecryptfs_symlink()
504 int rc; in ecryptfs_mkdir() local
510 rc = vfs_mkdir(d_inode(lower_dir_dentry), lower_dentry, mode); in ecryptfs_mkdir()
511 if (rc || d_really_is_negative(lower_dentry)) in ecryptfs_mkdir()
513 rc = ecryptfs_interpose(lower_dentry, dentry, dir->i_sb); in ecryptfs_mkdir()
514 if (rc) in ecryptfs_mkdir()
523 return rc; in ecryptfs_mkdir()
531 int rc; in ecryptfs_rmdir() local
540 rc = -EINVAL; in ecryptfs_rmdir()
542 rc = -EINVAL; in ecryptfs_rmdir()
544 rc = vfs_rmdir(lower_dir_inode, lower_dentry); in ecryptfs_rmdir()
545 if (!rc) { in ecryptfs_rmdir()
552 if (!rc) in ecryptfs_rmdir()
554 return rc; in ecryptfs_rmdir()
560 int rc; in ecryptfs_mknod() local
566 rc = vfs_mknod(d_inode(lower_dir_dentry), lower_dentry, mode, dev); in ecryptfs_mknod()
567 if (rc || d_really_is_negative(lower_dentry)) in ecryptfs_mknod()
569 rc = ecryptfs_interpose(lower_dentry, dentry, dir->i_sb); in ecryptfs_mknod()
570 if (rc) in ecryptfs_mknod()
578 return rc; in ecryptfs_mknod()
586 int rc; in ecryptfs_rename() local
607 rc = -EINVAL; in ecryptfs_rename()
619 rc = -ENOTEMPTY; in ecryptfs_rename()
622 rc = vfs_rename(d_inode(lower_old_dir_dentry), lower_old_dentry, in ecryptfs_rename()
625 if (rc) in ecryptfs_rename()
636 return rc; in ecryptfs_rename()
645 int rc; in ecryptfs_readlink_lower() local
651 rc = ecryptfs_decode_and_decrypt_filename(&buf, bufsiz, dentry->d_sb, in ecryptfs_readlink_lower()
654 if (rc) in ecryptfs_readlink_lower()
655 return ERR_PTR(rc); in ecryptfs_readlink_lower()
728 int rc = 0; in truncate_upper() local
739 rc = ecryptfs_get_lower_file(dentry, inode); in truncate_upper()
740 if (rc) in truncate_upper()
741 return rc; in truncate_upper()
752 rc = ecryptfs_write(inode, zero, in truncate_upper()
773 rc = -ENOMEM; in truncate_upper()
776 rc = ecryptfs_write(inode, zeros_virt, in truncate_upper()
779 if (rc) { in truncate_upper()
782 "reducing truncate; rc = [%d]\n", rc); in truncate_upper()
787 rc = ecryptfs_write_inode_size_to_metadata(inode); in truncate_upper()
788 if (rc) { in truncate_upper()
791 "rc = [%d]\n", rc); in truncate_upper()
808 return rc; in truncate_upper()
847 int rc; in ecryptfs_truncate() local
849 rc = ecryptfs_inode_newsize_ok(d_inode(dentry), new_length); in ecryptfs_truncate()
850 if (rc) in ecryptfs_truncate()
851 return rc; in ecryptfs_truncate()
853 rc = truncate_upper(dentry, &ia, &lower_ia); in ecryptfs_truncate()
854 if (!rc && lower_ia.ia_valid & ATTR_SIZE) { in ecryptfs_truncate()
858 rc = notify_change(lower_dentry, &lower_ia, NULL); in ecryptfs_truncate()
861 return rc; in ecryptfs_truncate()
884 int rc = 0; in ecryptfs_setattr() local
893 rc = ecryptfs_init_crypt_stat(crypt_stat); in ecryptfs_setattr()
894 if (rc) in ecryptfs_setattr()
895 return rc; in ecryptfs_setattr()
910 rc = ecryptfs_get_lower_file(dentry, inode); in ecryptfs_setattr()
911 if (rc) { in ecryptfs_setattr()
915 rc = ecryptfs_read_metadata(dentry); in ecryptfs_setattr()
917 if (rc) { in ecryptfs_setattr()
920 rc = -EIO; in ecryptfs_setattr()
929 rc = 0; in ecryptfs_setattr()
936 rc = setattr_prepare(dentry, ia); in ecryptfs_setattr()
937 if (rc) in ecryptfs_setattr()
940 rc = ecryptfs_inode_newsize_ok(inode, ia->ia_size); in ecryptfs_setattr()
941 if (rc) in ecryptfs_setattr()
949 rc = truncate_upper(dentry, ia, &lower_ia); in ecryptfs_setattr()
950 if (rc < 0) in ecryptfs_setattr()
962 rc = notify_change(lower_dentry, &lower_ia, NULL); in ecryptfs_setattr()
966 return rc; in ecryptfs_setattr()
974 int rc = 0; in ecryptfs_getattr_link() local
988 rc = PTR_ERR(target); in ecryptfs_getattr_link()
991 return rc; in ecryptfs_getattr_link()
999 int rc; in ecryptfs_getattr() local
1001 rc = vfs_getattr(ecryptfs_dentry_to_lower_path(dentry), &lower_stat, in ecryptfs_getattr()
1003 if (!rc) { in ecryptfs_getattr()
1009 return rc; in ecryptfs_getattr()
1017 int rc; in ecryptfs_setxattr() local
1022 rc = -EOPNOTSUPP; in ecryptfs_setxattr()
1025 rc = vfs_setxattr(lower_dentry, name, value, size, flags); in ecryptfs_setxattr()
1026 if (!rc && inode) in ecryptfs_setxattr()
1029 return rc; in ecryptfs_setxattr()
1036 int rc; in ecryptfs_getxattr_lower() local
1039 rc = -EOPNOTSUPP; in ecryptfs_getxattr_lower()
1043 rc = __vfs_getxattr(lower_dentry, lower_inode, name, value, size, in ecryptfs_getxattr_lower()
1047 return rc; in ecryptfs_getxattr_lower()
1062 int rc = 0; in ecryptfs_listxattr() local
1067 rc = -EOPNOTSUPP; in ecryptfs_listxattr()
1071 rc = d_inode(lower_dentry)->i_op->listxattr(lower_dentry, list, size); in ecryptfs_listxattr()
1074 return rc; in ecryptfs_listxattr()
1080 int rc; in ecryptfs_removexattr() local
1087 rc = -EOPNOTSUPP; in ecryptfs_removexattr()
1091 rc = __vfs_removexattr(lower_dentry, name); in ecryptfs_removexattr()
1094 return rc; in ecryptfs_removexattr()