/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 | 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 | inode.c | 141 int rc; in ecryptfs_do_unlink() local 148 rc = -EINVAL; in ecryptfs_do_unlink() 150 rc = -EINVAL; in ecryptfs_do_unlink() 152 rc = vfs_unlink(lower_dir_inode, lower_dentry, NULL); in ecryptfs_do_unlink() 153 if (rc) { in ecryptfs_do_unlink() 154 printk(KERN_ERR "Error in vfs_unlink; rc = [%d]\n", rc); in ecryptfs_do_unlink() 163 if (!rc) in ecryptfs_do_unlink() 165 return rc; in ecryptfs_do_unlink() 184 int rc; in ecryptfs_do_create() local 191 rc = vfs_create(d_inode(lower_dir_dentry), lower_dentry, mode, true); in ecryptfs_do_create() [all …]
|
D | mmap.c | 53 int rc; in ecryptfs_writepage() local 55 rc = ecryptfs_encrypt_page(page); in ecryptfs_writepage() 56 if (rc) { in ecryptfs_writepage() 65 return rc; in ecryptfs_writepage() 114 int rc = 0; in ecryptfs_copy_up_encrypted_with_header() local 133 rc = ecryptfs_read_xattr_region( in ecryptfs_copy_up_encrypted_with_header() 142 if (rc) { in ecryptfs_copy_up_encrypted_with_header() 144 "region; rc = [%d]\n", __func__, rc); in ecryptfs_copy_up_encrypted_with_header() 153 rc = ecryptfs_read_lower_page_segment( in ecryptfs_copy_up_encrypted_with_header() 157 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 46 rc = (struct dlm_rcom *) mb; in create_rcom() 48 rc->rc_header.h_version = (DLM_HEADER_MAJOR | DLM_HEADER_MINOR); in create_rcom() 49 rc->rc_header.h_lockspace = ls->ls_global_id; in create_rcom() 50 rc->rc_header.h_nodeid = dlm_our_nodeid(); in create_rcom() 51 rc->rc_header.h_length = mb_len; in create_rcom() 52 rc->rc_header.h_cmd = DLM_RCOM; in create_rcom() 54 rc->rc_type = type; in create_rcom() 57 rc->rc_seq = ls->ls_recover_seq; in create_rcom() 61 *rc_ret = rc; in create_rcom() [all …]
|
/fs/cifs/ |
D | link.c | 52 int rc; in symlink_hash() local 56 rc = cifs_alloc_hash("md5", &md5, &sdescmd5); in symlink_hash() 57 if (rc) in symlink_hash() 60 rc = crypto_shash_init(&sdescmd5->shash); in symlink_hash() 61 if (rc) { in symlink_hash() 65 rc = crypto_shash_update(&sdescmd5->shash, link_str, link_len); in symlink_hash() 66 if (rc) { in symlink_hash() 70 rc = crypto_shash_final(&sdescmd5->shash, md5_hash); in symlink_hash() 71 if (rc) in symlink_hash() 76 return rc; in symlink_hash() [all …]
|
D | smbencrypt.c | 81 int rc; in E_P16() local 85 rc = smbhash(p16, sp8, p14); in E_P16() 86 if (rc) in E_P16() 87 return rc; in E_P16() 88 rc = smbhash(p16 + 8, sp8, p14 + 7); in E_P16() 89 return rc; in E_P16() 95 int rc; in E_P24() local 97 rc = smbhash(p24, c8, p21); in E_P24() 98 if (rc) in E_P24() 99 return rc; in E_P24() [all …]
|
D | cifsencrypt.c | 45 int rc; in __cifs_calc_signature() local 69 rc = crypto_shash_update(shash, in __cifs_calc_signature() 71 if (rc) { in __cifs_calc_signature() 74 return rc; in __cifs_calc_signature() 87 rc = crypto_shash_update(shash, kaddr, len); in __cifs_calc_signature() 88 if (rc) { in __cifs_calc_signature() 92 return rc; in __cifs_calc_signature() 98 rc = crypto_shash_final(shash, signature); in __cifs_calc_signature() 99 if (rc) in __cifs_calc_signature() 102 return rc; in __cifs_calc_signature() [all …]
|
D | smb2transport.c | 47 int rc; in smb3_crypto_shash_allocate() local 49 rc = cifs_alloc_hash("hmac(sha256)", in smb3_crypto_shash_allocate() 52 if (rc) in smb3_crypto_shash_allocate() 55 rc = cifs_alloc_hash("cmac(aes)", &p->cmacaes, &p->sdesccmacaes); in smb3_crypto_shash_allocate() 56 if (rc) in smb3_crypto_shash_allocate() 62 return rc; in smb3_crypto_shash_allocate() 69 int rc = 0; in smb311_crypto_shash_allocate() local 71 rc = cifs_alloc_hash("hmac(sha256)", in smb311_crypto_shash_allocate() 74 if (rc) in smb311_crypto_shash_allocate() 75 return rc; in smb311_crypto_shash_allocate() [all …]
|
D | cifssmb.c | 131 int rc; in cifs_reconnect_tcon() local 170 rc = wait_event_interruptible_timeout(server->response_q, in cifs_reconnect_tcon() 173 if (rc < 0) { in cifs_reconnect_tcon() 215 rc = -EHOSTDOWN; in cifs_reconnect_tcon() 220 rc = cifs_negotiate_protocol(0, ses); in cifs_reconnect_tcon() 221 if (rc == 0 && ses->need_reconnect) in cifs_reconnect_tcon() 222 rc = cifs_setup_session(0, ses, nls_codepage); in cifs_reconnect_tcon() 225 if (rc || !tcon->need_reconnect) { in cifs_reconnect_tcon() 231 rc = cifs_tree_connect(0, tcon, nls_codepage); in cifs_reconnect_tcon() 233 cifs_dbg(FYI, "reconnect tcon rc = %d\n", rc); in cifs_reconnect_tcon() [all …]
|
D | transport.c | 206 int rc = 0; in smb_send_kvec() local 236 rc = sock_sendmsg(ssocket, smb_msg); in smb_send_kvec() 237 if (rc == -EAGAIN) { in smb_send_kvec() 249 if (rc < 0) in smb_send_kvec() 250 return rc; in smb_send_kvec() 252 if (rc == 0) { in smb_send_kvec() 261 *sent += rc; in smb_send_kvec() 315 int rc; in __smb_send_rqst() local 329 rc = -EAGAIN; in __smb_send_rqst() 331 rc = smbd_send(server, num_rqst, rqst); in __smb_send_rqst() [all …]
|
D | file.c | 118 int rc; in cifs_posix_open() local 134 rc = PTR_ERR(tlink); in cifs_posix_open() 142 rc = CIFSPOSIXCreate(xid, tcon, posix_flags, mode, pnetfid, presp_data, in cifs_posix_open() 147 if (rc) in cifs_posix_open() 163 rc = -ENOMEM; in cifs_posix_open() 173 return rc; in cifs_posix_open() 181 int rc; in cifs_nt_open() local 242 rc = server->ops->open(xid, &oparms, oplock, buf); in cifs_nt_open() 244 if (rc) in cifs_nt_open() 249 rc = cifs_get_inode_info_unix(&inode, full_path, inode->i_sb, in cifs_nt_open() [all …]
|
D | inode.c | 347 int rc; local 357 rc = CIFSSMBUnixQFileInfo(xid, tcon, cfile->fid.netfid, &find_data); 358 if (!rc) { 360 } else if (rc == -EREMOTE) { 362 rc = 0; 367 return rc; 374 int rc; local 389 rc = CIFSSMBUnixQPathInfo(xid, tcon, full_path, &find_data, 393 if (!rc) { 395 } else if (rc == -EREMOTE) { [all …]
|
D | ioctl.c | 47 int rc = 0; in cifs_ioctl_query_info() local 61 rc = -ENOMEM; in cifs_ioctl_query_info() 67 rc = tcon->ses->server->ops->ioctl_query_info( in cifs_ioctl_query_info() 71 rc = -EOPNOTSUPP; in cifs_ioctl_query_info() 77 return rc; in cifs_ioctl_query_info() 83 int rc; in cifs_ioctl_copychunk() local 95 rc = mnt_want_write_file(dst_file); in cifs_ioctl_copychunk() 96 if (rc) { in cifs_ioctl_copychunk() 97 cifs_dbg(FYI, "mnt_want_write failed with rc %d\n", rc); in cifs_ioctl_copychunk() 98 return rc; in cifs_ioctl_copychunk() [all …]
|
D | smb2inode.c | 72 int rc; in smb2_compound_op() local 107 rc = -ENOMEM; in smb2_compound_op() 122 rc = SMB2_open_init(tcon, server, in smb2_compound_op() 126 if (rc) in smb2_compound_op() 132 rc = 0; in smb2_compound_op() 141 rc = SMB2_query_info_init(tcon, server, in smb2_compound_op() 150 rc = SMB2_query_info_init(tcon, server, in smb2_compound_op() 158 if (!rc) { in smb2_compound_op() 164 if (rc) in smb2_compound_op() 175 rc = SMB2_query_info_init(tcon, server, in smb2_compound_op() [all …]
|
D | xattr.c | 57 ssize_t rc = -EOPNOTSUPP; in cifs_attrib_set() local 69 rc = pTcon->ses->server->ops->set_file_info(inode, full_path, in cifs_attrib_set() 71 if (rc == 0) in cifs_attrib_set() 74 return rc; in cifs_attrib_set() 81 ssize_t rc = -EOPNOTSUPP; in cifs_creation_time_set() local 93 rc = pTcon->ses->server->ops->set_file_info(inode, full_path, in cifs_creation_time_set() 95 if (rc == 0) in cifs_creation_time_set() 98 return rc; in cifs_creation_time_set() 106 int rc = -EOPNOTSUPP; in cifs_xattr_set() local 123 rc = -ENOMEM; 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/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 192 rc = do_jffs2_getxattr(inode, xprefix, "", NULL, 0); in jffs2_get_acl() 193 if (rc > 0) { in jffs2_get_acl() 194 value = kmalloc(rc, GFP_KERNEL); in jffs2_get_acl() 197 rc = do_jffs2_getxattr(inode, xprefix, "", value, rc); in jffs2_get_acl() 199 if (rc > 0) { in jffs2_get_acl() 200 acl = jffs2_acl_from_medium(value, rc); in jffs2_get_acl() 201 } else if (rc == -ENODATA || rc == -ENOSYS) { in jffs2_get_acl() 204 acl = ERR_PTR(rc); in jffs2_get_acl() 214 int rc; in __jffs2_set_acl() local [all …]
|
/fs/btrfs/ |
D | relocation.c | 156 static void mark_block_processed(struct reloc_control *rc, in mark_block_processed() argument 162 in_range(node->bytenr, rc->block_group->start, in mark_block_processed() 163 rc->block_group->length)) { in mark_block_processed() 164 blocksize = rc->extent_root->fs_info->nodesize; in mark_block_processed() 165 set_extent_bits(&rc->processed_blocks, node->bytenr, in mark_block_processed() 352 struct reloc_control *rc = fs_info->reloc_ctl; in find_reloc_root() local 357 ASSERT(rc); in find_reloc_root() 358 spin_lock(&rc->reloc_root_tree.lock); in find_reloc_root() 359 rb_node = rb_simple_search(&rc->reloc_root_tree.rb_root, bytenr); in find_reloc_root() 364 spin_unlock(&rc->reloc_root_tree.lock); in find_reloc_root() [all …]
|