Home
last modified time | relevance | path

Searched refs:rc (Results 1 – 25 of 159) sorted by relevance

1234567

/fs/ecryptfs/
Dkeystore.c31 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 …]
Dcrypto.c78 int rc = 0; in ecryptfs_calculate_md5() local
81 rc = ecryptfs_hash_digest(tfm, src, len, dst); in ecryptfs_calculate_md5()
82 if (rc) { in ecryptfs_calculate_md5()
85 __func__, rc); in ecryptfs_calculate_md5()
89 return rc; in ecryptfs_calculate_md5()
99 int rc; in ecryptfs_crypto_api_algify_cipher_name() local
104 rc = -ENOMEM; in ecryptfs_crypto_api_algify_cipher_name()
109 rc = 0; in ecryptfs_crypto_api_algify_cipher_name()
111 return rc; in ecryptfs_crypto_api_algify_cipher_name()
128 int rc = 0; in ecryptfs_derive_iv() local
[all …]
Dmmap.c53 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 …]
Dinode.c133 int rc; in ecryptfs_do_unlink() local
140 rc = -EINVAL; in ecryptfs_do_unlink()
142 rc = -EINVAL; in ecryptfs_do_unlink()
144 rc = vfs_unlink(lower_dir_inode, lower_dentry, NULL); in ecryptfs_do_unlink()
145 if (rc) { in ecryptfs_do_unlink()
146 printk(KERN_ERR "Error in vfs_unlink; rc = [%d]\n", rc); in ecryptfs_do_unlink()
155 if (!rc) in ecryptfs_do_unlink()
157 return rc; in ecryptfs_do_unlink()
176 int rc; in ecryptfs_do_create() local
183 rc = vfs_create(d_inode(lower_dir_dentry), lower_dentry, mode, true); in ecryptfs_do_create()
[all …]
Dfile.c35 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 …]
Dmain.c109 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 …]
Dmiscdev.c67 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 …]
Dmessaging.c41 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/
Drcom.c33 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/
Dlink.c52 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 …]
Dsmbencrypt.c81 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 …]
Dcifsencrypt.c45 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 …]
Dsmb2transport.c55 int rc; in smb3_crypto_shash_allocate() local
57 rc = cifs_alloc_hash("hmac(sha256)", in smb3_crypto_shash_allocate()
60 if (rc) in smb3_crypto_shash_allocate()
63 rc = cifs_alloc_hash("cmac(aes)", &p->cmacaes, &p->sdesccmacaes); in smb3_crypto_shash_allocate()
64 if (rc) in smb3_crypto_shash_allocate()
70 return rc; in smb3_crypto_shash_allocate()
77 int rc = 0; in smb311_crypto_shash_allocate() local
79 rc = cifs_alloc_hash("hmac(sha256)", in smb311_crypto_shash_allocate()
82 if (rc) in smb311_crypto_shash_allocate()
83 return rc; in smb311_crypto_shash_allocate()
[all …]
Dcifssmb.c128 int rc; in __cifs_reconnect_tcon() local
144 rc = CIFSTCon(0, tcon->ses, tree, tcon, nlsc); in __cifs_reconnect_tcon()
149 rc = CIFSTCon(0, tcon->ses, tcon->treeName, tcon, nlsc); in __cifs_reconnect_tcon()
153 rc = dfs_cache_noreq_find(tcon->dfs_path + 1, NULL, &tl); in __cifs_reconnect_tcon()
154 if (rc) in __cifs_reconnect_tcon()
177 rc = CIFSTCon(0, tcon->ses, tree, tcon, nlsc); in __cifs_reconnect_tcon()
178 if (!rc) in __cifs_reconnect_tcon()
180 if (rc == -EREMOTE) in __cifs_reconnect_tcon()
184 if (!rc) { in __cifs_reconnect_tcon()
186 rc = dfs_cache_noreq_update_tgthint(tcon->dfs_path + 1, in __cifs_reconnect_tcon()
[all …]
Dtransport.c206 int rc = 0; in smb_send_kvec() local
240 rc = sock_sendmsg(ssocket, smb_msg); in smb_send_kvec()
241 if (rc == -EAGAIN) { in smb_send_kvec()
253 if (rc < 0) in smb_send_kvec()
254 return rc; in smb_send_kvec()
256 if (rc == 0) { in smb_send_kvec()
265 *sent += rc; in smb_send_kvec()
319 int rc = 0; in __smb_send_rqst() local
333 rc = -EAGAIN; in __smb_send_rqst()
335 rc = smbd_send(server, num_rqst, rqst); in __smb_send_rqst()
[all …]
Dinode.c342 int rc; local
352 rc = CIFSSMBUnixQFileInfo(xid, tcon, cfile->fid.netfid, &find_data);
353 if (!rc) {
355 } else if (rc == -EREMOTE) {
357 rc = 0;
362 return rc;
369 int rc; local
384 rc = CIFSSMBUnixQPathInfo(xid, tcon, full_path, &find_data,
388 if (!rc) {
390 } else if (rc == -EREMOTE) {
[all …]
Dfile.c118 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()
172 return rc; in cifs_posix_open()
180 int rc; in cifs_nt_open() local
244 rc = server->ops->open(xid, &oparms, oplock, buf); in cifs_nt_open()
246 if (rc) in cifs_nt_open()
250 rc = cifs_get_inode_info_unix(&inode, full_path, inode->i_sb, in cifs_nt_open()
[all …]
Dioctl.c47 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 …]
Dsmb2pdu.c162 int rc; in __smb2_reconnect() local
178 rc = SMB2_tcon(0, tcon->ses, tree, tcon, nlsc); in __smb2_reconnect()
183 rc = SMB2_tcon(0, tcon->ses, tcon->treeName, tcon, nlsc); in __smb2_reconnect()
187 rc = dfs_cache_noreq_find(tcon->dfs_path + 1, NULL, &tl); in __smb2_reconnect()
188 if (rc) in __smb2_reconnect()
211 rc = SMB2_tcon(0, tcon->ses, tree, tcon, nlsc); in __smb2_reconnect()
212 if (!rc) in __smb2_reconnect()
214 if (rc == -EREMOTE) in __smb2_reconnect()
218 if (!rc) { in __smb2_reconnect()
220 rc = dfs_cache_noreq_update_tgthint(tcon->dfs_path + 1, in __smb2_reconnect()
[all …]
Dsmb2inode.c57 int rc; in smb2_compound_op() local
94 rc = -ENOMEM; in smb2_compound_op()
111 rc = SMB2_open_init(tcon, &rqst[num_rqst], &oplock, &oparms, in smb2_compound_op()
114 if (rc) in smb2_compound_op()
120 rc = 0; in smb2_compound_op()
130 rc = SMB2_query_info_init(tcon, &rqst[num_rqst], in smb2_compound_op()
138 rc = SMB2_query_info_init(tcon, &rqst[num_rqst], in smb2_compound_op()
145 if (!rc) { in smb2_compound_op()
151 if (rc) in smb2_compound_op()
175 rc = SMB2_set_info_init(tcon, &rqst[num_rqst], COMPOUND_FID, in smb2_compound_op()
[all …]
/fs/jfs/
Dnamei.c65 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 …]
Dfile.c22 int rc = 0; in jfs_fsync() local
24 rc = file_write_and_wait_range(file, start, end); in jfs_fsync()
25 if (rc) in jfs_fsync()
26 return rc; in jfs_fsync()
34 return rc; in jfs_fsync()
37 rc |= jfs_commit_inode(inode, 1); in jfs_fsync()
40 return rc ? -EIO : 0; in jfs_fsync()
45 int rc; in jfs_open() local
47 if ((rc = dquot_file_open(inode, file))) in jfs_open()
48 return rc; in jfs_open()
[all …]
Djfs_mount.c70 int rc = 0; /* Return code */ in jfs_mount() local
81 if ((rc = chkSuper(sb))) { in jfs_mount()
88 rc = -EIO; in jfs_mount()
98 if ((rc = diMount(ipaimap))) { in jfs_mount()
99 jfs_err("jfs_mount: diMount(ipaimap) failed w/rc = %d", rc); in jfs_mount()
108 rc = -EIO; in jfs_mount()
119 if ((rc = dbMount(ipbmap))) { in jfs_mount()
120 jfs_err("jfs_mount: dbMount failed w/rc = %d", rc); in jfs_mount()
139 rc = -EIO; in jfs_mount()
149 if ((rc = diMount(ipaimap2))) { in jfs_mount()
[all …]
/fs/orangefs/
Dorangefs-sysfs.c213 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/
Dacl.c180 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 …]

1234567