/fs/ecryptfs/ |
D | keystore.c | 31 int rc = 0; in process_request_key_err() local 36 rc = -ENOENT; in process_request_key_err() 40 rc = -ETIME; in process_request_key_err() 44 rc = -EINVAL; in process_request_key_err() 49 rc = -EINVAL; in process_request_key_err() 51 return rc; in process_request_key_err() 56 int rc = err_code; in process_find_global_auth_tok_for_sig_err() local 66 rc = process_request_key_err(err_code); in process_find_global_auth_tok_for_sig_err() 69 return rc; in process_find_global_auth_tok_for_sig_err() 84 int rc = 0; in ecryptfs_parse_packet_length() local [all …]
|
D | inode.c | 140 int rc; in ecryptfs_do_unlink() local 142 rc = lock_parent(dentry, &lower_dentry, &lower_dir); in ecryptfs_do_unlink() 144 if (!rc) { in ecryptfs_do_unlink() 146 rc = -EINVAL; in ecryptfs_do_unlink() 148 rc = vfs_unlink(&init_user_ns, lower_dir, lower_dentry, in ecryptfs_do_unlink() 151 if (rc) { in ecryptfs_do_unlink() 152 printk(KERN_ERR "Error in vfs_unlink; rc = [%d]\n", rc); in ecryptfs_do_unlink() 161 if (!rc) in ecryptfs_do_unlink() 163 return rc; in ecryptfs_do_unlink() 182 int rc; in ecryptfs_do_create() local [all …]
|
D | crypto.c | 65 int rc = crypto_shash_tfm_digest(crypt_stat->hash_tfm, src, len, dst); in ecryptfs_calculate_md5() local 67 if (rc) { in ecryptfs_calculate_md5() 70 __func__, rc); in ecryptfs_calculate_md5() 74 return rc; in ecryptfs_calculate_md5() 84 int rc; in ecryptfs_crypto_api_algify_cipher_name() local 89 rc = -ENOMEM; in ecryptfs_crypto_api_algify_cipher_name() 94 rc = 0; in ecryptfs_crypto_api_algify_cipher_name() 96 return rc; in ecryptfs_crypto_api_algify_cipher_name() 113 int rc = 0; in ecryptfs_derive_iv() local 132 rc = ecryptfs_calculate_md5(dst, crypt_stat, src, in ecryptfs_derive_iv() [all …]
|
D | mmap.c | 54 int rc; in ecryptfs_writepage() local 56 rc = ecryptfs_encrypt_page(page); in ecryptfs_writepage() 57 if (rc) { in ecryptfs_writepage() 66 return rc; in ecryptfs_writepage() 115 int rc = 0; in ecryptfs_copy_up_encrypted_with_header() local 134 rc = ecryptfs_read_xattr_region( in ecryptfs_copy_up_encrypted_with_header() 143 if (rc) { in ecryptfs_copy_up_encrypted_with_header() 145 "region; rc = [%d]\n", __func__, rc); in ecryptfs_copy_up_encrypted_with_header() 154 rc = ecryptfs_read_lower_page_segment( in ecryptfs_copy_up_encrypted_with_header() 158 if (rc) { in ecryptfs_copy_up_encrypted_with_header() [all …]
|
D | file.c | 35 ssize_t rc; in ecryptfs_read_update_atime() local 39 rc = generic_file_read_iter(iocb, to); in ecryptfs_read_update_atime() 40 if (rc >= 0) { in ecryptfs_read_update_atime() 44 return rc; in ecryptfs_read_update_atime() 64 int rc; in ecryptfs_filldir() local 67 rc = ecryptfs_decode_and_decrypt_filename(&name, &name_size, in ecryptfs_filldir() 70 if (rc) { in ecryptfs_filldir() 71 if (rc != -EINVAL) { in ecryptfs_filldir() 74 __func__, lower_name, rc); in ecryptfs_filldir() 75 return rc; in ecryptfs_filldir() [all …]
|
D | main.c | 109 int rc; in ecryptfs_init_lower_file() local 111 rc = ecryptfs_privileged_open(lower_file, path->dentry, path->mnt, in ecryptfs_init_lower_file() 113 if (rc) { in ecryptfs_init_lower_file() 116 "rc = [%d]\n", path->dentry, path->mnt, rc); in ecryptfs_init_lower_file() 119 return rc; in ecryptfs_init_lower_file() 125 int count, rc = 0; in ecryptfs_get_lower_file() local 131 rc = -EINVAL; in ecryptfs_get_lower_file() 133 rc = ecryptfs_init_lower_file(dentry, in ecryptfs_get_lower_file() 135 if (rc) in ecryptfs_get_lower_file() 139 return rc; in ecryptfs_get_lower_file() [all …]
|
D | miscdev.c | 67 int rc; in ecryptfs_miscdev_open() local 70 rc = ecryptfs_find_daemon_by_euid(&daemon); in ecryptfs_miscdev_open() 71 if (!rc) { in ecryptfs_miscdev_open() 72 rc = -EINVAL; in ecryptfs_miscdev_open() 75 rc = ecryptfs_spawn_daemon(&daemon, file); in ecryptfs_miscdev_open() 76 if (rc) { in ecryptfs_miscdev_open() 78 "rc = [%d]\n", __func__, rc); in ecryptfs_miscdev_open() 83 rc = -EBUSY; in ecryptfs_miscdev_open() 93 return rc; in ecryptfs_miscdev_open() 110 int rc; in ecryptfs_miscdev_release() local [all …]
|
D | messaging.c | 41 int rc; in ecryptfs_acquire_free_msg_ctx() local 49 rc = -ENOMEM; in ecryptfs_acquire_free_msg_ctx() 56 rc = 0; in ecryptfs_acquire_free_msg_ctx() 60 rc = -ENOMEM; in ecryptfs_acquire_free_msg_ctx() 62 return rc; in ecryptfs_acquire_free_msg_ctx() 104 int rc; in ecryptfs_find_daemon_by_euid() local 110 rc = 0; in ecryptfs_find_daemon_by_euid() 114 rc = -EINVAL; in ecryptfs_find_daemon_by_euid() 116 return rc; in ecryptfs_find_daemon_by_euid() 132 int rc = 0; in ecryptfs_spawn_daemon() local [all …]
|
/fs/dlm/ |
D | rcom.c | 33 struct dlm_rcom *rc; in _create_rcom() local 35 rc = (struct dlm_rcom *) mb; in _create_rcom() 37 rc->rc_header.h_version = (DLM_HEADER_MAJOR | DLM_HEADER_MINOR); in _create_rcom() 38 rc->rc_header.u.h_lockspace = ls->ls_global_id; in _create_rcom() 39 rc->rc_header.h_nodeid = dlm_our_nodeid(); in _create_rcom() 40 rc->rc_header.h_length = mb_len; in _create_rcom() 41 rc->rc_header.h_cmd = DLM_RCOM; in _create_rcom() 43 rc->rc_type = type; in _create_rcom() 46 rc->rc_seq = ls->ls_recover_seq; in _create_rcom() 49 *rc_ret = rc; in _create_rcom() [all …]
|
/fs/cifs/ |
D | link.c | 40 int rc; in symlink_hash() local 44 rc = cifs_alloc_hash("md5", &md5, &sdescmd5); in symlink_hash() 45 if (rc) in symlink_hash() 48 rc = crypto_shash_init(&sdescmd5->shash); in symlink_hash() 49 if (rc) { in symlink_hash() 53 rc = crypto_shash_update(&sdescmd5->shash, link_str, link_len); in symlink_hash() 54 if (rc) { in symlink_hash() 58 rc = crypto_shash_final(&sdescmd5->shash, md5_hash); in symlink_hash() 59 if (rc) in symlink_hash() 64 return rc; in symlink_hash() [all …]
|
D | smb2transport.c | 34 int rc; in smb3_crypto_shash_allocate() local 36 rc = cifs_alloc_hash("hmac(sha256)", in smb3_crypto_shash_allocate() 39 if (rc) in smb3_crypto_shash_allocate() 42 rc = cifs_alloc_hash("cmac(aes)", &p->cmacaes, &p->sdesccmacaes); in smb3_crypto_shash_allocate() 43 if (rc) in smb3_crypto_shash_allocate() 49 return rc; in smb3_crypto_shash_allocate() 56 int rc = 0; in smb311_crypto_shash_allocate() local 58 rc = cifs_alloc_hash("hmac(sha256)", in smb311_crypto_shash_allocate() 61 if (rc) in smb311_crypto_shash_allocate() 62 return rc; in smb311_crypto_shash_allocate() [all …]
|
D | cifssmb.c | 102 int rc; in cifs_reconnect_tcon() local 141 rc = wait_event_interruptible_timeout(server->response_q, in cifs_reconnect_tcon() 144 if (rc < 0) { in cifs_reconnect_tcon() 186 rc = -EHOSTDOWN; in cifs_reconnect_tcon() 191 rc = cifs_negotiate_protocol(0, ses); in cifs_reconnect_tcon() 192 if (rc == 0 && ses->need_reconnect) in cifs_reconnect_tcon() 193 rc = cifs_setup_session(0, ses, nls_codepage); in cifs_reconnect_tcon() 196 if (rc || !tcon->need_reconnect) { in cifs_reconnect_tcon() 202 rc = cifs_tree_connect(0, tcon, nls_codepage); in cifs_reconnect_tcon() 204 cifs_dbg(FYI, "reconnect tcon rc = %d\n", rc); in cifs_reconnect_tcon() [all …]
|
D | cifsencrypt.c | 32 int rc; in __cifs_calc_signature() local 56 rc = crypto_shash_update(shash, in __cifs_calc_signature() 58 if (rc) { in __cifs_calc_signature() 61 return rc; in __cifs_calc_signature() 74 rc = crypto_shash_update(shash, kaddr, len); in __cifs_calc_signature() 75 if (rc) { in __cifs_calc_signature() 79 return rc; in __cifs_calc_signature() 85 rc = crypto_shash_final(shash, signature); in __cifs_calc_signature() 86 if (rc) in __cifs_calc_signature() 89 return rc; in __cifs_calc_signature() [all …]
|
D | inode.c | 341 int rc; local 351 rc = CIFSSMBUnixQFileInfo(xid, tcon, cfile->fid.netfid, &find_data); 352 if (!rc) { 354 } else if (rc == -EREMOTE) { 356 rc = 0; 360 rc = cifs_fattr_to_inode(inode, &fattr); 364 return rc; 371 int rc; local 386 rc = CIFSSMBUnixQPathInfo(xid, tcon, full_path, &find_data, 390 if (!rc) { [all …]
|
D | ioctl.c | 36 int rc = 0; in cifs_ioctl_query_info() local 52 rc = -ENOMEM; in cifs_ioctl_query_info() 58 rc = tcon->ses->server->ops->ioctl_query_info( in cifs_ioctl_query_info() 62 rc = -EOPNOTSUPP; in cifs_ioctl_query_info() 68 return rc; in cifs_ioctl_query_info() 74 int rc; in cifs_ioctl_copychunk() local 86 rc = mnt_want_write_file(dst_file); in cifs_ioctl_copychunk() 87 if (rc) { in cifs_ioctl_copychunk() 88 cifs_dbg(FYI, "mnt_want_write failed with rc %d\n", rc); in cifs_ioctl_copychunk() 89 return rc; in cifs_ioctl_copychunk() [all …]
|
D | file.c | 107 int rc; in cifs_posix_open() local 123 rc = PTR_ERR(tlink); in cifs_posix_open() 131 rc = CIFSPOSIXCreate(xid, tcon, posix_flags, mode, pnetfid, presp_data, in cifs_posix_open() 136 if (rc) in cifs_posix_open() 152 rc = -ENOMEM; in cifs_posix_open() 157 rc = cifs_fattr_to_inode(*pinode, &fattr); in cifs_posix_open() 162 return rc; in cifs_posix_open() 170 int rc; in cifs_nt_open() local 231 rc = server->ops->open(xid, &oparms, oplock, buf); in cifs_nt_open() 233 if (rc) in cifs_nt_open() [all …]
|
D | transport.c | 193 int rc = 0; in smb_send_kvec() local 223 rc = sock_sendmsg(ssocket, smb_msg); in smb_send_kvec() 224 if (rc == -EAGAIN) { in smb_send_kvec() 236 if (rc < 0) in smb_send_kvec() 237 return rc; in smb_send_kvec() 239 if (rc == 0) { in smb_send_kvec() 248 *sent += rc; in smb_send_kvec() 302 int rc; in __smb_send_rqst() local 316 rc = -EAGAIN; in __smb_send_rqst() 318 rc = smbd_send(server, num_rqst, rqst); in __smb_send_rqst() [all …]
|
D | smb2inode.c | 59 int rc; in smb2_compound_op() local 94 rc = -ENOMEM; in smb2_compound_op() 109 rc = SMB2_open_init(tcon, server, in smb2_compound_op() 113 if (rc) in smb2_compound_op() 119 rc = 0; in smb2_compound_op() 128 rc = SMB2_query_info_init(tcon, server, in smb2_compound_op() 137 rc = SMB2_query_info_init(tcon, server, in smb2_compound_op() 145 if (!rc) { in smb2_compound_op() 151 if (rc) in smb2_compound_op() 162 rc = SMB2_query_info_init(tcon, server, in smb2_compound_op() [all …]
|
D | connect.c | 91 int rc; in reconn_set_ipaddr_from_hostname() local 109 rc = dns_resolve_server_name_to_ip(unc, &ipaddr, &expiry); in reconn_set_ipaddr_from_hostname() 112 if (rc < 0) { in reconn_set_ipaddr_from_hostname() 114 __func__, server->hostname, rc); in reconn_set_ipaddr_from_hostname() 119 rc = cifs_convert_address((struct sockaddr *)&server->dstaddr, ipaddr, in reconn_set_ipaddr_from_hostname() 125 if (rc) { in reconn_set_ipaddr_from_hostname() 134 rc = !rc ? -1 : 0; in reconn_set_ipaddr_from_hostname() 141 return rc; in reconn_set_ipaddr_from_hostname() 147 int rc; in cifs_resolve_server() local 156 rc = reconn_set_ipaddr_from_hostname(server); in cifs_resolve_server() [all …]
|
D | xattr.c | 47 ssize_t rc = -EOPNOTSUPP; in cifs_attrib_set() local 59 rc = pTcon->ses->server->ops->set_file_info(inode, full_path, in cifs_attrib_set() 61 if (rc == 0) in cifs_attrib_set() 64 return rc; in cifs_attrib_set() 71 ssize_t rc = -EOPNOTSUPP; in cifs_creation_time_set() local 83 rc = pTcon->ses->server->ops->set_file_info(inode, full_path, in cifs_creation_time_set() 85 if (rc == 0) in cifs_creation_time_set() 88 return rc; in cifs_creation_time_set() 97 int rc = -EOPNOTSUPP; in cifs_xattr_set() local 116 rc = PTR_ERR(full_path); in cifs_xattr_set() [all …]
|
/fs/jfs/ |
D | namei.c | 65 int rc = 0; in jfs_create() local 76 rc = dquot_initialize(dip); in jfs_create() 77 if (rc) in jfs_create() 84 if ((rc = get_UCSname(&dname, dentry))) in jfs_create() 94 rc = PTR_ERR(ip); in jfs_create() 103 rc = jfs_init_acl(tid, ip, dip); in jfs_create() 104 if (rc) in jfs_create() 107 rc = jfs_init_security(tid, ip, dip, &dentry->d_name); in jfs_create() 108 if (rc) { in jfs_create() 113 if ((rc = dtSearch(dip, &dname, &ino, &btstack, JFS_CREATE))) { in jfs_create() [all …]
|
D | jfs_mount.c | 72 int rc = 0; /* Return code */ in jfs_mount() local 83 if ((rc = chkSuper(sb))) { in jfs_mount() 90 rc = -EIO; in jfs_mount() 100 if ((rc = diMount(ipaimap))) { in jfs_mount() 101 jfs_err("jfs_mount: diMount(ipaimap) failed w/rc = %d", rc); in jfs_mount() 110 rc = -EIO; in jfs_mount() 121 if ((rc = dbMount(ipbmap))) { in jfs_mount() 122 jfs_err("jfs_mount: dbMount failed w/rc = %d", rc); in jfs_mount() 141 rc = -EIO; in jfs_mount() 151 if ((rc = diMount(ipaimap2))) { in jfs_mount() [all …]
|
/fs/ksmbd/ |
D | auth.c | 83 int rc; in ksmbd_gen_sess_key() local 91 rc = crypto_shash_setkey(CRYPTO_HMACMD5_TFM(ctx), in ksmbd_gen_sess_key() 94 if (rc) { in ksmbd_gen_sess_key() 95 ksmbd_debug(AUTH, "hmacmd5 set key fail error %d\n", rc); in ksmbd_gen_sess_key() 99 rc = crypto_shash_init(CRYPTO_HMACMD5(ctx)); in ksmbd_gen_sess_key() 100 if (rc) { in ksmbd_gen_sess_key() 101 ksmbd_debug(AUTH, "could not init hmacmd5 error %d\n", rc); in ksmbd_gen_sess_key() 105 rc = crypto_shash_update(CRYPTO_HMACMD5(ctx), in ksmbd_gen_sess_key() 108 if (rc) { in ksmbd_gen_sess_key() 109 ksmbd_debug(AUTH, "Could not update with response error %d\n", rc); in ksmbd_gen_sess_key() [all …]
|
/fs/orangefs/ |
D | orangefs-sysfs.c | 213 int rc = -EIO; in sysfs_int_show() local 220 rc = scnprintf(buf, in sysfs_int_show() 227 rc = scnprintf(buf, in sysfs_int_show() 234 rc = scnprintf(buf, in sysfs_int_show() 241 rc = scnprintf(buf, in sysfs_int_show() 248 rc = scnprintf(buf, in sysfs_int_show() 259 rc = scnprintf(buf, in sysfs_int_show() 265 rc = scnprintf(buf, in sysfs_int_show() 277 return rc; in sysfs_int_show() 283 int rc = 0; in sysfs_int_store() local [all …]
|
/fs/jffs2/ |
D | acl.c | 180 int rc, xprefix; in jffs2_get_acl() local 195 rc = do_jffs2_getxattr(inode, xprefix, "", NULL, 0); in jffs2_get_acl() 196 if (rc > 0) { in jffs2_get_acl() 197 value = kmalloc(rc, GFP_KERNEL); in jffs2_get_acl() 200 rc = do_jffs2_getxattr(inode, xprefix, "", value, rc); in jffs2_get_acl() 202 if (rc > 0) { in jffs2_get_acl() 203 acl = jffs2_acl_from_medium(value, rc); in jffs2_get_acl() 204 } else if (rc == -ENODATA || rc == -ENOSYS) { in jffs2_get_acl() 207 acl = ERR_PTR(rc); in jffs2_get_acl() 217 int rc; in __jffs2_set_acl() local [all …]
|