Lines Matching refs:rc
124 int rc; in ecryptfs_init_lower_file() local
126 rc = ecryptfs_privileged_open(lower_file, path->dentry, path->mnt, in ecryptfs_init_lower_file()
128 if (rc) { in ecryptfs_init_lower_file()
131 "rc = [%d]\n", path->dentry, path->mnt, rc); in ecryptfs_init_lower_file()
134 return rc; in ecryptfs_init_lower_file()
140 int count, rc = 0; in ecryptfs_get_lower_file() local
146 rc = -EINVAL; in ecryptfs_get_lower_file()
148 rc = ecryptfs_init_lower_file(dentry, in ecryptfs_get_lower_file()
150 if (rc) in ecryptfs_get_lower_file()
154 return rc; in ecryptfs_get_lower_file()
204 int rc = 0; in ecryptfs_init_global_auth_toks() local
209 rc = ecryptfs_keyring_auth_tok_for_sig( in ecryptfs_init_global_auth_toks()
212 if (rc) { in ecryptfs_init_global_auth_toks()
224 return rc; in ecryptfs_init_global_auth_toks()
261 int rc = 0; in ecryptfs_parse_options() local
287 rc = -EINVAL; in ecryptfs_parse_options()
299 rc = ecryptfs_add_global_auth_tok(mount_crypt_stat, in ecryptfs_parse_options()
301 if (rc) { in ecryptfs_parse_options()
303 "global sig; rc = [%d]\n", rc); in ecryptfs_parse_options()
349 rc = ecryptfs_add_global_auth_tok( in ecryptfs_parse_options()
353 if (rc) { in ecryptfs_parse_options()
357 rc); in ecryptfs_parse_options()
401 rc = -EINVAL; in ecryptfs_parse_options()
432 rc = -EINVAL; in ecryptfs_parse_options()
439 rc = ecryptfs_add_new_key_tfm( in ecryptfs_parse_options()
442 if (rc) { in ecryptfs_parse_options()
448 rc); in ecryptfs_parse_options()
449 rc = -EINVAL; in ecryptfs_parse_options()
457 rc = ecryptfs_add_new_key_tfm( in ecryptfs_parse_options()
460 if (rc) { in ecryptfs_parse_options()
466 rc); in ecryptfs_parse_options()
467 rc = -EINVAL; in ecryptfs_parse_options()
473 rc = ecryptfs_init_global_auth_toks(mount_crypt_stat); in ecryptfs_parse_options()
474 if (rc) in ecryptfs_parse_options()
476 "properly register; rc = [%d]\n", rc); in ecryptfs_parse_options()
478 return rc; in ecryptfs_parse_options()
502 int rc; in ecryptfs_mount() local
506 rc = -ENOMEM; in ecryptfs_mount()
510 rc = ecryptfs_parse_options(sbi, raw_data, &check_ruid); in ecryptfs_mount()
511 if (rc) { in ecryptfs_mount()
519 rc = PTR_ERR(s); in ecryptfs_mount()
523 rc = bdi_setup_and_register(&sbi->bdi, "ecryptfs"); in ecryptfs_mount()
524 if (rc) in ecryptfs_mount()
536 rc = kern_path(dev_name, LOOKUP_FOLLOW | LOOKUP_DIRECTORY, &path); in ecryptfs_mount()
537 if (rc) { in ecryptfs_mount()
542 rc = -EINVAL; in ecryptfs_mount()
550 rc = -EPERM; in ecryptfs_mount()
581 rc = -EINVAL; in ecryptfs_mount()
588 rc = PTR_ERR(inode); in ecryptfs_mount()
594 rc = -ENOMEM; in ecryptfs_mount()
598 rc = -ENOMEM; in ecryptfs_mount()
619 printk(KERN_ERR "%s; rc = [%d]\n", err, rc); in ecryptfs_mount()
620 return ERR_PTR(rc); in ecryptfs_mount()
792 int rc; in do_sysfs_registration() local
797 rc = -ENOMEM; in do_sysfs_registration()
800 rc = sysfs_create_group(ecryptfs_kobj, &attr_group); in do_sysfs_registration()
801 if (rc) { in do_sysfs_registration()
807 return rc; in do_sysfs_registration()
818 int rc; in ecryptfs_init() local
821 rc = -EINVAL; in ecryptfs_init()
831 rc = ecryptfs_init_kmem_caches(); in ecryptfs_init()
832 if (rc) { in ecryptfs_init()
837 rc = do_sysfs_registration(); in ecryptfs_init()
838 if (rc) { in ecryptfs_init()
842 rc = ecryptfs_init_kthread(); in ecryptfs_init()
843 if (rc) { in ecryptfs_init()
845 "rc = [%d]\n", __func__, rc); in ecryptfs_init()
848 rc = ecryptfs_init_messaging(); in ecryptfs_init()
849 if (rc) { in ecryptfs_init()
855 rc = ecryptfs_init_crypto(); in ecryptfs_init()
856 if (rc) { in ecryptfs_init()
858 "rc = [%d]\n", rc); in ecryptfs_init()
861 rc = register_filesystem(&ecryptfs_fs_type); in ecryptfs_init()
862 if (rc) { in ecryptfs_init()
882 return rc; in ecryptfs_init()
887 int rc; in ecryptfs_exit() local
889 rc = ecryptfs_destroy_crypto(); in ecryptfs_exit()
890 if (rc) in ecryptfs_exit()
892 "rc = [%d]\n", rc); in ecryptfs_exit()