/fs/ecryptfs/ |
D | keystore.c | 44 int rc = 0; in process_request_key_err() local 49 rc = -ENOENT; in process_request_key_err() 53 rc = -ETIME; in process_request_key_err() 57 rc = -EINVAL; in process_request_key_err() 62 rc = -EINVAL; in process_request_key_err() 64 return rc; in process_request_key_err() 79 int rc = 0; in ecryptfs_parse_packet_length() local 96 rc = -EINVAL; in ecryptfs_parse_packet_length() 100 rc = -EINVAL; in ecryptfs_parse_packet_length() 104 return rc; in ecryptfs_parse_packet_length() [all …]
|
D | crypto.c | 103 int rc = 0; in ecryptfs_calculate_md5() local 111 rc = PTR_ERR(desc.tfm); in ecryptfs_calculate_md5() 114 rc); in ecryptfs_calculate_md5() 119 rc = crypto_hash_init(&desc); in ecryptfs_calculate_md5() 120 if (rc) { in ecryptfs_calculate_md5() 123 __func__, rc); in ecryptfs_calculate_md5() 126 rc = crypto_hash_update(&desc, &sg, len); in ecryptfs_calculate_md5() 127 if (rc) { in ecryptfs_calculate_md5() 130 __func__, rc); in ecryptfs_calculate_md5() 133 rc = crypto_hash_final(&desc, dst); in ecryptfs_calculate_md5() [all …]
|
D | inode.c | 72 int rc; in ecryptfs_create_underlying_file() local 78 rc = vfs_create(lower_dir_inode, lower_dentry, mode, nd); in ecryptfs_create_underlying_file() 81 return rc; in ecryptfs_create_underlying_file() 102 int rc; in ecryptfs_do_create() local 111 rc = PTR_ERR(lower_dir_dentry); in ecryptfs_do_create() 114 rc = ecryptfs_create_underlying_file(lower_dir_dentry->d_inode, in ecryptfs_do_create() 116 if (rc) { in ecryptfs_do_create() 118 "rc = [%d]\n", __func__, rc); in ecryptfs_do_create() 121 rc = ecryptfs_interpose(lower_dentry, ecryptfs_dentry, in ecryptfs_do_create() 123 if (rc) { in ecryptfs_do_create() [all …]
|
D | mmap.c | 70 int rc; in ecryptfs_writepage() local 72 rc = ecryptfs_encrypt_page(page); in ecryptfs_writepage() 73 if (rc) { in ecryptfs_writepage() 82 return rc; in ecryptfs_writepage() 131 int rc = 0; in ecryptfs_copy_up_encrypted_with_header() local 149 rc = ecryptfs_read_xattr_region( in ecryptfs_copy_up_encrypted_with_header() 155 if (rc) { in ecryptfs_copy_up_encrypted_with_header() 157 "region; rc = [%d]\n", __func__, rc); in ecryptfs_copy_up_encrypted_with_header() 166 rc = ecryptfs_read_lower_page_segment( in ecryptfs_copy_up_encrypted_with_header() 170 if (rc) { in ecryptfs_copy_up_encrypted_with_header() [all …]
|
D | messaging.c | 53 int rc; in ecryptfs_acquire_free_msg_ctx() local 61 rc = -ENOMEM; in ecryptfs_acquire_free_msg_ctx() 68 rc = 0; in ecryptfs_acquire_free_msg_ctx() 72 rc = -ENOMEM; in ecryptfs_acquire_free_msg_ctx() 74 return rc; in ecryptfs_acquire_free_msg_ctx() 121 int rc; in ecryptfs_find_daemon_by_euid() local 127 rc = 0; in ecryptfs_find_daemon_by_euid() 131 rc = -EINVAL; in ecryptfs_find_daemon_by_euid() 133 return rc; in ecryptfs_find_daemon_by_euid() 156 int rc; in ecryptfs_send_raw_message() local [all …]
|
D | miscdev.c | 46 int rc; in ecryptfs_miscdev_poll() local 50 rc = ecryptfs_find_daemon_by_euid(&daemon, euid, current_user_ns()); in ecryptfs_miscdev_poll() 51 BUG_ON(rc || !daemon); in ecryptfs_miscdev_poll() 87 int rc; in ecryptfs_miscdev_open() local 90 rc = try_module_get(THIS_MODULE); in ecryptfs_miscdev_open() 91 if (rc == 0) { in ecryptfs_miscdev_open() 92 rc = -EIO; in ecryptfs_miscdev_open() 94 "count; rc = [%d]\n", __func__, rc); in ecryptfs_miscdev_open() 97 rc = ecryptfs_find_daemon_by_euid(&daemon, euid, current_user_ns()); in ecryptfs_miscdev_open() 98 if (rc || !daemon) { in ecryptfs_miscdev_open() [all …]
|
D | main.c | 121 int rc = 0; in ecryptfs_init_persistent_file() local 130 rc = ecryptfs_privileged_open(&inode_info->lower_file, in ecryptfs_init_persistent_file() 132 if (rc || IS_ERR(inode_info->lower_file)) { in ecryptfs_init_persistent_file() 135 "rc = [%d]\n", lower_dentry, lower_mnt, rc); in ecryptfs_init_persistent_file() 136 rc = PTR_ERR(inode_info->lower_file); in ecryptfs_init_persistent_file() 141 return rc; in ecryptfs_init_persistent_file() 160 int rc = 0; in ecryptfs_interpose() local 164 rc = -EXDEV; in ecryptfs_interpose() 168 rc = -ESTALE; in ecryptfs_interpose() 175 rc = -EACCES; in ecryptfs_interpose() [all …]
|
D | file.c | 50 int 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() 87 int rc; in ecryptfs_filldir() local 90 rc = ecryptfs_decode_and_decrypt_filename(&name, &name_size, in ecryptfs_filldir() 93 if (rc) { in ecryptfs_filldir() 96 rc); in ecryptfs_filldir() [all …]
|
D | read_write.c | 45 int rc = 0; in ecryptfs_write_lower() local 59 rc = -EINVAL; in ecryptfs_write_lower() 63 return rc; in ecryptfs_write_lower() 88 int rc; in ecryptfs_write_lower_page_segment() local 93 rc = ecryptfs_write_lower(ecryptfs_inode, virt, offset, size); in ecryptfs_write_lower_page_segment() 95 return rc; in ecryptfs_write_lower_page_segment() 125 int rc = 0; in ecryptfs_write() local 153 rc = PTR_ERR(ecryptfs_page); in ecryptfs_write() 157 ecryptfs_page_idx, rc); in ecryptfs_write() 187 rc = ecryptfs_encrypt_page(ecryptfs_page); in ecryptfs_write() [all …]
|
/fs/dlm/ |
D | rcom.c | 36 struct dlm_rcom *rc; in create_rcom() local 49 rc = (struct dlm_rcom *) mb; in create_rcom() 51 rc->rc_header.h_version = (DLM_HEADER_MAJOR | DLM_HEADER_MINOR); in create_rcom() 52 rc->rc_header.h_lockspace = ls->ls_global_id; in create_rcom() 53 rc->rc_header.h_nodeid = dlm_our_nodeid(); in create_rcom() 54 rc->rc_header.h_length = mb_len; in create_rcom() 55 rc->rc_header.h_cmd = DLM_RCOM; in create_rcom() 57 rc->rc_type = type; in create_rcom() 60 rc->rc_seq = ls->ls_recover_seq; in create_rcom() 64 *rc_ret = rc; in create_rcom() [all …]
|
D | util.c | 134 void dlm_rcom_out(struct dlm_rcom *rc) in dlm_rcom_out() argument 136 header_out(&rc->rc_header); in dlm_rcom_out() 138 rc->rc_type = cpu_to_le32(rc->rc_type); in dlm_rcom_out() 139 rc->rc_result = cpu_to_le32(rc->rc_result); in dlm_rcom_out() 140 rc->rc_id = cpu_to_le64(rc->rc_id); in dlm_rcom_out() 141 rc->rc_seq = cpu_to_le64(rc->rc_seq); in dlm_rcom_out() 142 rc->rc_seq_reply = cpu_to_le64(rc->rc_seq_reply); in dlm_rcom_out() 145 void dlm_rcom_in(struct dlm_rcom *rc) in dlm_rcom_in() argument 147 header_in(&rc->rc_header); in dlm_rcom_in() 149 rc->rc_type = le32_to_cpu(rc->rc_type); in dlm_rcom_in() [all …]
|
/fs/cifs/ |
D | transport.c | 160 int rc = 0; in smb_sendv() local 198 rc = kernel_sendmsg(ssocket, &smb_msg, &iov[first_vec], in smb_sendv() 200 if ((rc == -ENOSPC) || (rc == -EAGAIN)) { in smb_sendv() 224 rc = -EAGAIN; in smb_sendv() 230 if (rc < 0) in smb_sendv() 233 if (rc == total_len) { in smb_sendv() 236 } else if (rc > total_len) { in smb_sendv() 237 cERROR(1, ("sent %d requested %d", rc, total_len)); in smb_sendv() 240 if (rc == 0) { in smb_sendv() 247 total_len -= rc; in smb_sendv() [all …]
|
D | cifssmb.c | 145 int rc = 0; in small_smb_init() local 194 rc = cifs_setup_session(0, tcon->ses, in small_smb_init() 196 if (!rc && (tcon->need_reconnect)) { in small_smb_init() 198 rc = CIFSTCon(0, tcon->ses, tcon->treeName, in small_smb_init() 204 if (rc == 0) { in small_smb_init() 215 cFYI(1, ("reconnect tcon rc = %d", rc)); in small_smb_init() 242 if (rc) in small_smb_init() 243 return rc; in small_smb_init() 257 return rc; in small_smb_init() 264 int rc; in small_smb_init_no_tc() local [all …]
|
D | inode.c | 248 int rc = 0; local 262 rc = CIFSSMBUnixQPathInfo(xid, pTcon, full_path, &find_data, 265 if (rc == -EREMOTE && !is_dfs_referral) { 270 rc = 0; 271 } else if (rc) 281 rc = -ENOMEM; 305 return rc; 312 int rc; local 329 rc = CIFSSMBOpen(xid, pTcon, path, FILE_OPEN, GENERIC_READ, 334 if (rc == 0) { [all …]
|
D | file.c | 106 int rc; in cifs_open_inode_helper() local 137 rc = filemap_write_and_wait(file->f_path.dentry->d_inode->i_mapping); in cifs_open_inode_helper() 138 if (rc != 0) in cifs_open_inode_helper() 139 CIFS_I(file->f_path.dentry->d_inode)->write_behind_rc = rc; in cifs_open_inode_helper() 148 rc = cifs_get_inode_info_unix(&file->f_path.dentry->d_inode, in cifs_open_inode_helper() 151 rc = cifs_get_inode_info(&file->f_path.dentry->d_inode, in cifs_open_inode_helper() 162 return rc; in cifs_open_inode_helper() 167 int rc = -EACCES; in cifs_open() local 205 rc = 0; in cifs_open() 207 return rc; in cifs_open() [all …]
|
D | link.c | 35 int rc = -EACCES; in cifs_hardlink() local 54 rc = -ENOMEM; in cifs_hardlink() 60 rc = CIFSUnixCreateHardLink(xid, pTcon, fromName, toName, in cifs_hardlink() 65 rc = CIFSCreateHardLink(xid, pTcon, fromName, toName, in cifs_hardlink() 69 if ((rc == -EIO) || (rc == -EINVAL)) in cifs_hardlink() 70 rc = -EOPNOTSUPP; in cifs_hardlink() 79 if (rc == 0) { in cifs_hardlink() 103 return rc; in cifs_hardlink() 110 int rc = -EACCES; in cifs_follow_link() local 140 rc = CIFSSMBUnixQuerySymLink(xid, pTcon, full_path, in cifs_follow_link() [all …]
|
D | cifsfs.c | 102 int rc = 0; in cifs_read_super() local 132 rc = cifs_mount(sb, cifs_sb, data, devname); in cifs_read_super() 134 if (rc) { in cifs_read_super() 137 ("cifs_mount failed w/return code = %d", rc)); in cifs_read_super() 154 rc = PTR_ERR(inode); in cifs_read_super() 162 rc = -ENOMEM; in cifs_read_super() 194 return rc; in cifs_read_super() 200 int rc = 0; in cifs_put_super() local 209 rc = cifs_umount(sb, cifs_sb); in cifs_put_super() 210 if (rc) in cifs_put_super() [all …]
|
/fs/jfs/ |
D | namei.c | 77 int rc = 0; in jfs_create() local 92 if ((rc = get_UCSname(&dname, dentry))) in jfs_create() 102 rc = PTR_ERR(ip); in jfs_create() 111 rc = jfs_init_acl(tid, ip, dip); in jfs_create() 112 if (rc) in jfs_create() 115 rc = jfs_init_security(tid, ip, dip); in jfs_create() 116 if (rc) { in jfs_create() 121 if ((rc = dtSearch(dip, &dname, &ino, &btstack, JFS_CREATE))) { in jfs_create() 122 jfs_err("jfs_create: dtSearch returned %d", rc); in jfs_create() 145 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 | acl.c | 85 int rc; in jfs_set_acl() local 111 rc = posix_acl_to_xattr(acl, value, size); in jfs_set_acl() 112 if (rc < 0) in jfs_set_acl() 115 rc = __jfs_setxattr(tid, inode, ea_name, value, size, 0); in jfs_set_acl() 119 if (!rc) { in jfs_set_acl() 124 return rc; in jfs_set_acl() 153 int rc = 0; in jfs_init_acl() local 164 rc = jfs_set_acl(tid, inode, ACL_TYPE_DEFAULT, acl); in jfs_init_acl() 165 if (rc) in jfs_init_acl() 170 rc = -ENOMEM; in jfs_init_acl() [all …]
|
/fs/qnx4/ |
D | fsync.c | 63 int rc; in sync_iblock() local 70 rc = sync_block(inode, iblock, wait); in sync_iblock() 71 if (rc) in sync_iblock() 72 return rc; in sync_iblock() 88 int rc, err = 0; in sync_direct() local 91 rc = sync_block(inode, in sync_direct() 93 if (rc > 0) in sync_direct() 95 if (rc) in sync_direct() 96 err = rc; in sync_direct() 106 int rc, err = 0; in sync_indirect() local [all …]
|
/fs/jffs2/ |
D | acl.c | 184 int rc, xprefix; in jffs2_get_acl() local 202 rc = do_jffs2_getxattr(inode, xprefix, "", NULL, 0); in jffs2_get_acl() 203 if (rc > 0) { in jffs2_get_acl() 204 value = kmalloc(rc, GFP_KERNEL); in jffs2_get_acl() 207 rc = do_jffs2_getxattr(inode, xprefix, "", value, rc); in jffs2_get_acl() 209 if (rc > 0) { in jffs2_get_acl() 210 acl = jffs2_acl_from_medium(value, rc); in jffs2_get_acl() 211 } else if (rc == -ENODATA || rc == -ENOSYS) { in jffs2_get_acl() 214 acl = ERR_PTR(rc); in jffs2_get_acl() 235 int rc; in __jffs2_set_acl() local [all …]
|
D | xattr.c | 69 int rc = 0; in is_xattr_datum_unchecked() local 74 rc = 1; in is_xattr_datum_unchecked() 79 return rc; in is_xattr_datum_unchecked() 135 int rc; in do_verify_xattr_datum() local 143 rc = jffs2_flash_read(c, offset, sizeof(rx), &readlen, (char *)&rx); in do_verify_xattr_datum() 144 if (rc || readlen != sizeof(rx)) { in do_verify_xattr_datum() 146 rc, sizeof(rx), readlen, offset); in do_verify_xattr_datum() 147 return rc ? rc : -EIO; in do_verify_xattr_datum() 265 int rc = 0; in load_xattr_datum() local 273 rc = do_verify_xattr_datum(c, xd); in load_xattr_datum() [all …]
|
/fs/ext2/ |
D | xip.c | 37 int rc; in __ext2_get_block() local 40 rc = ext2_get_block(inode, pgoff, &tmp, create); in __ext2_get_block() 44 if (!tmp.b_blocknr && !rc) { in __ext2_get_block() 46 rc = -ENODATA; in __ext2_get_block() 49 return rc; in __ext2_get_block() 57 int rc; in ext2_clear_xip_target() local 59 rc = __inode_direct_access(inode, block, &kaddr, &pfn); in ext2_clear_xip_target() 60 if (!rc) in ext2_clear_xip_target() 62 return rc; in ext2_clear_xip_target() 80 int rc; in ext2_get_xip_mem() local [all …]
|
/fs/proc/ |
D | vmcore.c | 215 int i, nr_ptnote=0, rc=0; in merge_note_headers_elf64() local 237 rc = read_from_oldmem(notes_section, max_sz, &offset, 0); in merge_note_headers_elf64() 238 if (rc < 0) { in merge_note_headers_elf64() 240 return rc; in merge_note_headers_elf64() 296 int i, nr_ptnote=0, rc=0; in merge_note_headers_elf32() local 318 rc = read_from_oldmem(notes_section, max_sz, &offset, 0); in merge_note_headers_elf32() 319 if (rc < 0) { in merge_note_headers_elf32() 321 return rc; in merge_note_headers_elf32() 491 int rc=0; in parse_crash_elf64_headers() local 498 rc = read_from_oldmem((char*)&ehdr, sizeof(Elf64_Ehdr), &addr, 0); in parse_crash_elf64_headers() [all …]
|