/fs/ecryptfs/ |
D | keystore.c | 45 int rc = 0; in process_request_key_err() local 50 rc = -ENOENT; in process_request_key_err() 54 rc = -ETIME; in process_request_key_err() 58 rc = -EINVAL; in process_request_key_err() 63 rc = -EINVAL; in process_request_key_err() 65 return rc; in process_request_key_err() 70 int rc = err_code; in process_find_global_auth_tok_for_sig_err() local 80 rc = process_request_key_err(err_code); in process_find_global_auth_tok_for_sig_err() 83 return rc; in process_find_global_auth_tok_for_sig_err() 98 int rc = 0; in ecryptfs_parse_packet_length() local [all …]
|
D | crypto.c | 104 int rc = 0; in ecryptfs_calculate_md5() local 112 rc = PTR_ERR(desc.tfm); in ecryptfs_calculate_md5() 115 rc); in ecryptfs_calculate_md5() 120 rc = crypto_hash_init(&desc); in ecryptfs_calculate_md5() 121 if (rc) { in ecryptfs_calculate_md5() 124 __func__, rc); in ecryptfs_calculate_md5() 127 rc = crypto_hash_update(&desc, &sg, len); in ecryptfs_calculate_md5() 128 if (rc) { in ecryptfs_calculate_md5() 131 __func__, rc); in ecryptfs_calculate_md5() 134 rc = crypto_hash_final(&desc, dst); in ecryptfs_calculate_md5() [all …]
|
D | mmap.c | 67 int rc; in ecryptfs_writepage() local 69 rc = ecryptfs_encrypt_page(page); in ecryptfs_writepage() 70 if (rc) { in ecryptfs_writepage() 79 return rc; in ecryptfs_writepage() 128 int rc = 0; in ecryptfs_copy_up_encrypted_with_header() local 147 rc = ecryptfs_read_xattr_region( in ecryptfs_copy_up_encrypted_with_header() 156 if (rc) { in ecryptfs_copy_up_encrypted_with_header() 158 "region; rc = [%d]\n", __func__, rc); in ecryptfs_copy_up_encrypted_with_header() 167 rc = ecryptfs_read_lower_page_segment( in ecryptfs_copy_up_encrypted_with_header() 171 if (rc) { in ecryptfs_copy_up_encrypted_with_header() [all …]
|
D | inode.c | 152 int rc; in ecryptfs_do_unlink() local 156 rc = vfs_unlink(lower_dir_inode, lower_dentry); in ecryptfs_do_unlink() 157 if (rc) { in ecryptfs_do_unlink() 158 printk(KERN_ERR "Error in vfs_unlink; rc = [%d]\n", rc); in ecryptfs_do_unlink() 168 return rc; in ecryptfs_do_unlink() 188 int rc; in ecryptfs_do_create() local 201 rc = vfs_create(lower_dir_dentry->d_inode, lower_dentry, mode, true); in ecryptfs_do_create() 202 if (rc) { in ecryptfs_do_create() 204 "rc = [%d]\n", __func__, rc); in ecryptfs_do_create() 205 inode = ERR_PTR(rc); in ecryptfs_do_create() [all …]
|
D | file.c | 51 ssize_t rc; in ecryptfs_read_update_atime() local 55 rc = generic_file_aio_read(iocb, iov, nr_segs, pos); in ecryptfs_read_update_atime() 60 if (-EIOCBQUEUED == rc) in ecryptfs_read_update_atime() 61 rc = wait_on_sync_kiocb(iocb); in ecryptfs_read_update_atime() 62 if (rc >= 0) { in ecryptfs_read_update_atime() 67 return rc; in ecryptfs_read_update_atime() 88 int rc; in ecryptfs_filldir() local 91 rc = ecryptfs_decode_and_decrypt_filename(&name, &name_size, in ecryptfs_filldir() 94 if (rc) { in ecryptfs_filldir() 97 rc); in ecryptfs_filldir() [all …]
|
D | main.c | 125 int rc; in ecryptfs_init_lower_file() local 127 rc = ecryptfs_privileged_open(lower_file, lower_dentry, lower_mnt, in ecryptfs_init_lower_file() 129 if (rc) { in ecryptfs_init_lower_file() 132 "rc = [%d]\n", lower_dentry, lower_mnt, rc); in ecryptfs_init_lower_file() 135 return rc; in ecryptfs_init_lower_file() 141 int count, rc = 0; in ecryptfs_get_lower_file() local 147 rc = -EINVAL; in ecryptfs_get_lower_file() 149 rc = ecryptfs_init_lower_file(dentry, in ecryptfs_get_lower_file() 151 if (rc) in ecryptfs_get_lower_file() 155 return rc; in ecryptfs_get_lower_file() [all …]
|
D | miscdev.c | 80 int rc; in ecryptfs_miscdev_open() local 83 rc = ecryptfs_find_daemon_by_euid(&daemon); in ecryptfs_miscdev_open() 84 if (!rc) { in ecryptfs_miscdev_open() 85 rc = -EINVAL; in ecryptfs_miscdev_open() 88 rc = ecryptfs_spawn_daemon(&daemon, file); in ecryptfs_miscdev_open() 89 if (rc) { in ecryptfs_miscdev_open() 91 "rc = [%d]\n", __func__, rc); in ecryptfs_miscdev_open() 96 rc = -EBUSY; in ecryptfs_miscdev_open() 106 return rc; in ecryptfs_miscdev_open() 123 int rc; in ecryptfs_miscdev_release() local [all …]
|
D | messaging.c | 54 int rc; in ecryptfs_acquire_free_msg_ctx() local 62 rc = -ENOMEM; in ecryptfs_acquire_free_msg_ctx() 69 rc = 0; in ecryptfs_acquire_free_msg_ctx() 73 rc = -ENOMEM; in ecryptfs_acquire_free_msg_ctx() 75 return rc; in ecryptfs_acquire_free_msg_ctx() 117 int rc; in ecryptfs_find_daemon_by_euid() local 123 rc = 0; in ecryptfs_find_daemon_by_euid() 127 rc = -EINVAL; in ecryptfs_find_daemon_by_euid() 129 return rc; in ecryptfs_find_daemon_by_euid() 145 int rc = 0; in ecryptfs_spawn_daemon() local [all …]
|
D | read_write.c | 43 ssize_t rc; in ecryptfs_write_lower() local 48 rc = kernel_write(lower_file, data, size, offset); in ecryptfs_write_lower() 50 return rc; in ecryptfs_write_lower() 75 int rc; in ecryptfs_write_lower_page_segment() local 80 rc = ecryptfs_write_lower(ecryptfs_inode, virt, offset, size); in ecryptfs_write_lower_page_segment() 81 if (rc > 0) in ecryptfs_write_lower_page_segment() 82 rc = 0; in ecryptfs_write_lower_page_segment() 84 return rc; in ecryptfs_write_lower_page_segment() 114 int rc = 0; in ecryptfs_write() local 132 rc = -EINTR; in ecryptfs_write() [all …]
|
/fs/dlm/ |
D | rcom.c | 35 struct dlm_rcom *rc; in create_rcom() local 48 rc = (struct dlm_rcom *) mb; in create_rcom() 50 rc->rc_header.h_version = (DLM_HEADER_MAJOR | DLM_HEADER_MINOR); in create_rcom() 51 rc->rc_header.h_lockspace = ls->ls_global_id; in create_rcom() 52 rc->rc_header.h_nodeid = dlm_our_nodeid(); in create_rcom() 53 rc->rc_header.h_length = mb_len; in create_rcom() 54 rc->rc_header.h_cmd = DLM_RCOM; in create_rcom() 56 rc->rc_type = type; in create_rcom() 59 rc->rc_seq = ls->ls_recover_seq; in create_rcom() 63 *rc_ret = rc; in create_rcom() [all …]
|
/fs/cifs/ |
D | smbencrypt.c | 70 int rc; in smbhash() local 80 rc = PTR_ERR(tfm_des); in smbhash() 92 rc = crypto_blkcipher_encrypt(&desc, &sgout, &sgin, 8); in smbhash() 93 if (rc) in smbhash() 94 cifs_dbg(VFS, "could not encrypt crypt key rc: %d\n", rc); in smbhash() 98 return rc; in smbhash() 104 int rc; in E_P16() local 108 rc = smbhash(p16, sp8, p14); in E_P16() 109 if (rc) in E_P16() 110 return rc; in E_P16() [all …]
|
D | transport.c | 138 int rc = 0; in smb_send_kvec() local 180 rc = kernel_sendmsg(ssocket, &smb_msg, &iov[first_vec], in smb_send_kvec() 182 if (rc == -EAGAIN) { in smb_send_kvec() 187 rc = -EAGAIN; in smb_send_kvec() 194 if (rc < 0) in smb_send_kvec() 198 *sent += rc; in smb_send_kvec() 200 if (rc == remaining) { in smb_send_kvec() 205 if (rc > remaining) { in smb_send_kvec() 206 cifs_dbg(VFS, "sent %d requested %d\n", rc, remaining); in smb_send_kvec() 210 if (rc == 0) { in smb_send_kvec() [all …]
|
D | cifsencrypt.c | 45 int rc; in cifs_calc_signature() local 57 rc = crypto_shash_init(&server->secmech.sdescmd5->shash); in cifs_calc_signature() 58 if (rc) { in cifs_calc_signature() 60 return rc; in cifs_calc_signature() 63 rc = crypto_shash_update(&server->secmech.sdescmd5->shash, in cifs_calc_signature() 65 if (rc) { in cifs_calc_signature() 67 return rc; in cifs_calc_signature() 82 rc = in cifs_calc_signature() 86 rc = in cifs_calc_signature() 90 if (rc) { in cifs_calc_signature() [all …]
|
D | link.c | 51 int rc; in symlink_hash() local 58 rc = PTR_ERR(md5); in symlink_hash() 60 __func__, rc); in symlink_hash() 61 return rc; in symlink_hash() 66 rc = -ENOMEM; in symlink_hash() 72 rc = crypto_shash_init(&sdescmd5->shash); in symlink_hash() 73 if (rc) { in symlink_hash() 77 rc = crypto_shash_update(&sdescmd5->shash, link_str, link_len); in symlink_hash() 78 if (rc) { in symlink_hash() 82 rc = crypto_shash_final(&sdescmd5->shash, md5_hash); in symlink_hash() [all …]
|
D | cifssmb.c | 118 int rc; in cifs_reconnect_tcon() local 181 rc = cifs_negotiate_protocol(0, ses); in cifs_reconnect_tcon() 182 if (rc == 0 && ses->need_reconnect) in cifs_reconnect_tcon() 183 rc = cifs_setup_session(0, ses, nls_codepage); in cifs_reconnect_tcon() 186 if (rc || !tcon->need_reconnect) { in cifs_reconnect_tcon() 192 rc = CIFSTCon(0, ses, tcon->treeName, tcon, nls_codepage); in cifs_reconnect_tcon() 194 cifs_dbg(FYI, "reconnect tcon rc = %d\n", rc); in cifs_reconnect_tcon() 196 if (rc) in cifs_reconnect_tcon() 227 rc = -EAGAIN; in cifs_reconnect_tcon() 231 return rc; in cifs_reconnect_tcon() [all …]
|
D | inode.c | 301 int rc; local 311 rc = CIFSSMBUnixQFileInfo(xid, tcon, cfile->fid.netfid, &find_data); 312 if (!rc) { 314 } else if (rc == -EREMOTE) { 316 rc = 0; 321 return rc; 328 int rc; local 343 rc = CIFSSMBUnixQPathInfo(xid, tcon, full_path, &find_data, 348 if (!rc) { 350 } else if (rc == -EREMOTE) { [all …]
|
D | file.c | 117 int rc; in cifs_posix_open() local 133 rc = PTR_ERR(tlink); in cifs_posix_open() 141 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() 172 return rc; in cifs_posix_open() 180 int rc; in cifs_nt_open() local 227 rc = server->ops->open(xid, tcon, full_path, disposition, in cifs_nt_open() 231 if (rc) in cifs_nt_open() 235 rc = cifs_get_inode_info_unix(&inode, full_path, inode->i_sb, in cifs_nt_open() [all …]
|
D | smb2pdu.c | 133 int rc = 0; in smb2_reconnect() local 144 return rc; in smb2_reconnect() 147 return rc; in smb2_reconnect() 209 return rc; in smb2_reconnect() 218 rc = cifs_negotiate_protocol(0, tcon->ses); in smb2_reconnect() 219 if (!rc && tcon->ses->need_reconnect) in smb2_reconnect() 220 rc = cifs_setup_session(0, tcon->ses, nls_codepage); in smb2_reconnect() 222 if (rc || !tcon->need_reconnect) { in smb2_reconnect() 228 rc = SMB2_tcon(0, tcon->ses, tcon->treeName, tcon, nls_codepage); in smb2_reconnect() 230 cifs_dbg(FYI, "reconnect tcon rc = %d\n", rc); in smb2_reconnect() [all …]
|
D | smb2transport.c | 45 int i, rc; in smb2_calc_signature() local 55 rc = crypto_shash_setkey(server->secmech.hmacsha256, in smb2_calc_signature() 57 if (rc) { in smb2_calc_signature() 59 return rc; in smb2_calc_signature() 62 rc = crypto_shash_init(&server->secmech.sdeschmacsha256->shash); in smb2_calc_signature() 63 if (rc) { in smb2_calc_signature() 65 return rc; in smb2_calc_signature() 82 rc = in smb2_calc_signature() 87 rc = in smb2_calc_signature() 92 if (rc) { in smb2_calc_signature() [all …]
|
/fs/jffs2/ |
D | acl.c | 179 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() 220 int rc; in __jffs2_set_acl() local [all …]
|
D | xattr.c | 73 int rc = 0; in is_xattr_datum_unchecked() local 78 rc = 1; in is_xattr_datum_unchecked() 83 return rc; in is_xattr_datum_unchecked() 139 int rc; in do_verify_xattr_datum() local 147 rc = jffs2_flash_read(c, offset, sizeof(rx), &readlen, (char *)&rx); in do_verify_xattr_datum() 148 if (rc || readlen != sizeof(rx)) { in do_verify_xattr_datum() 150 rc, sizeof(rx), readlen, offset); in do_verify_xattr_datum() 151 return rc ? rc : -EIO; in do_verify_xattr_datum() 269 int rc = 0; in load_xattr_datum() local 277 rc = do_verify_xattr_datum(c, xd); in load_xattr_datum() [all …]
|
/fs/jfs/ |
D | namei.c | 78 int rc = 0; in jfs_create() local 95 if ((rc = get_UCSname(&dname, dentry))) in jfs_create() 105 rc = PTR_ERR(ip); in jfs_create() 114 rc = jfs_init_acl(tid, ip, dip); in jfs_create() 115 if (rc) in jfs_create() 118 rc = jfs_init_security(tid, ip, dip, &dentry->d_name); in jfs_create() 119 if (rc) { in jfs_create() 124 if ((rc = dtSearch(dip, &dname, &ino, &btstack, JFS_CREATE))) { in jfs_create() 125 jfs_err("jfs_create: dtSearch returned %d", rc); in jfs_create() 148 if ((rc = dtInsert(tid, dip, &dname, &ino, &btstack))) { in jfs_create() [all …]
|
D | jfs_mount.c | 83 int rc = 0; /* Return code */ in jfs_mount() local 94 if ((rc = chkSuper(sb))) { in jfs_mount() 101 rc = -EIO; in jfs_mount() 111 if ((rc = diMount(ipaimap))) { in jfs_mount() 112 jfs_err("jfs_mount: diMount(ipaimap) failed w/rc = %d", rc); in jfs_mount() 121 rc = -EIO; in jfs_mount() 132 if ((rc = dbMount(ipbmap))) { in jfs_mount() 133 jfs_err("jfs_mount: dbMount failed w/rc = %d", rc); in jfs_mount() 152 rc = -EIO; in jfs_mount() 162 if ((rc = diMount(ipaimap2))) { in jfs_mount() [all …]
|
D | jfs_extent.c | 90 int rc; in extAlloc() local 138 if ((rc = extBalloc(ip, hint ? hint : INOHINT(ip), &nxlen, &nxaddr))) { in extAlloc() 140 return (rc); in extAlloc() 144 rc = dquot_alloc_block(ip, nxlen); in extAlloc() 145 if (rc) { in extAlloc() 148 return rc; in extAlloc() 159 rc = xtExtend(0, ip, xoff, (int) nxlen, 0); in extAlloc() 161 rc = xtInsert(0, ip, xflag, xoff, (int) nxlen, &nxaddr, 0); in extAlloc() 166 if (rc) { in extAlloc() 170 return (rc); in extAlloc() [all …]
|
/fs/btrfs/ |
D | relocation.c | 196 static void __mark_block_processed(struct reloc_control *rc, 550 static struct btrfs_root *find_reloc_root(struct reloc_control *rc, in find_reloc_root() argument 557 spin_lock(&rc->reloc_root_tree.lock); in find_reloc_root() 558 rb_node = tree_search(&rc->reloc_root_tree.rb_root, bytenr); in find_reloc_root() 563 spin_unlock(&rc->reloc_root_tree.lock); in find_reloc_root() 596 struct btrfs_root *find_tree_root(struct reloc_control *rc, in find_tree_root() argument 606 root = read_fs_root(rc->extent_root->fs_info, root_objectid); in find_tree_root() 670 struct backref_node *build_backref_tree(struct reloc_control *rc, argument 674 struct backref_cache *cache = &rc->backref_cache; 723 ret = btrfs_search_slot(NULL, rc->extent_root, &key, path1, [all …]
|