Lines Matching refs:rc

110 	int rc;  in ecryptfs_init_lower_file()  local
112 rc = ecryptfs_privileged_open(lower_file, path->dentry, path->mnt, in ecryptfs_init_lower_file()
114 if (rc) { in ecryptfs_init_lower_file()
117 "rc = [%d]\n", path->dentry, path->mnt, rc); in ecryptfs_init_lower_file()
120 return rc; in ecryptfs_init_lower_file()
126 int count, rc = 0; in ecryptfs_get_lower_file() local
132 rc = -EINVAL; in ecryptfs_get_lower_file()
134 rc = ecryptfs_init_lower_file(dentry, in ecryptfs_get_lower_file()
136 if (rc) in ecryptfs_get_lower_file()
140 return rc; in ecryptfs_get_lower_file()
188 int rc = 0; in ecryptfs_init_global_auth_toks() local
193 rc = ecryptfs_keyring_auth_tok_for_sig( in ecryptfs_init_global_auth_toks()
196 if (rc) { in ecryptfs_init_global_auth_toks()
208 return rc; in ecryptfs_init_global_auth_toks()
246 int rc; in ecryptfs_parse_param() local
261 rc = ecryptfs_add_global_auth_tok(mount_crypt_stat, in ecryptfs_parse_param()
263 if (rc) { in ecryptfs_parse_param()
265 "global sig; rc = [%d]\n", rc); in ecryptfs_parse_param()
266 return rc; in ecryptfs_parse_param()
295 rc = ecryptfs_add_global_auth_tok( in ecryptfs_parse_param()
299 if (rc) { in ecryptfs_parse_param()
302 mount_crypt_stat->global_default_fnek_sig, rc); in ecryptfs_parse_param()
303 return rc; in ecryptfs_parse_param()
337 int rc = 0; in ecryptfs_validate_options() local
347 rc = -EINVAL; in ecryptfs_validate_options()
378 rc = -EINVAL; in ecryptfs_validate_options()
385 rc = ecryptfs_add_new_key_tfm( in ecryptfs_validate_options()
388 if (rc) { in ecryptfs_validate_options()
394 rc); in ecryptfs_validate_options()
395 rc = -EINVAL; in ecryptfs_validate_options()
403 rc = ecryptfs_add_new_key_tfm( in ecryptfs_validate_options()
406 if (rc) { in ecryptfs_validate_options()
412 rc); in ecryptfs_validate_options()
413 rc = -EINVAL; in ecryptfs_validate_options()
419 rc = ecryptfs_init_global_auth_toks(mount_crypt_stat); in ecryptfs_validate_options()
420 if (rc) in ecryptfs_validate_options()
422 "properly register; rc = [%d]\n", rc); in ecryptfs_validate_options()
424 return rc; in ecryptfs_validate_options()
444 int rc; in ecryptfs_get_tree() local
447 rc = -EINVAL; in ecryptfs_get_tree()
453 rc = ecryptfs_validate_options(fc); in ecryptfs_get_tree()
454 if (rc) { in ecryptfs_get_tree()
461 rc = PTR_ERR(s); in ecryptfs_get_tree()
465 rc = super_setup_bdi(s); in ecryptfs_get_tree()
466 if (rc) in ecryptfs_get_tree()
478 rc = kern_path(fc->source, LOOKUP_FOLLOW | LOOKUP_DIRECTORY, &path); in ecryptfs_get_tree()
479 if (rc) { in ecryptfs_get_tree()
484 rc = -EINVAL; in ecryptfs_get_tree()
492 rc = -EINVAL; in ecryptfs_get_tree()
499 rc = -EPERM; in ecryptfs_get_tree()
529 rc = -EINVAL; in ecryptfs_get_tree()
536 rc = PTR_ERR(inode); in ecryptfs_get_tree()
542 rc = -ENOMEM; in ecryptfs_get_tree()
546 rc = -ENOMEM; in ecryptfs_get_tree()
567 printk(KERN_ERR "%s; rc = [%d]\n", err, rc); in ecryptfs_get_tree()
568 return rc; in ecryptfs_get_tree()
784 int rc; in do_sysfs_registration() local
789 rc = -ENOMEM; in do_sysfs_registration()
792 rc = sysfs_create_group(ecryptfs_kobj, &attr_group); in do_sysfs_registration()
793 if (rc) { in do_sysfs_registration()
799 return rc; in do_sysfs_registration()
810 int rc; in ecryptfs_init() local
813 rc = -EINVAL; in ecryptfs_init()
823 rc = ecryptfs_init_kmem_caches(); in ecryptfs_init()
824 if (rc) { in ecryptfs_init()
829 rc = do_sysfs_registration(); in ecryptfs_init()
830 if (rc) { in ecryptfs_init()
834 rc = ecryptfs_init_kthread(); in ecryptfs_init()
835 if (rc) { in ecryptfs_init()
837 "rc = [%d]\n", __func__, rc); in ecryptfs_init()
840 rc = ecryptfs_init_messaging(); in ecryptfs_init()
841 if (rc) { in ecryptfs_init()
847 rc = ecryptfs_init_crypto(); in ecryptfs_init()
848 if (rc) { in ecryptfs_init()
850 "rc = [%d]\n", rc); in ecryptfs_init()
853 rc = register_filesystem(&ecryptfs_fs_type); in ecryptfs_init()
854 if (rc) { in ecryptfs_init()
874 return rc; in ecryptfs_init()
879 int rc; in ecryptfs_exit() local
881 rc = ecryptfs_destroy_crypto(); in ecryptfs_exit()
882 if (rc) in ecryptfs_exit()
884 "rc = [%d]\n", rc); in ecryptfs_exit()