/fs/hpfs/ |
D | namei.c | 33 struct inode *result; in hpfs_mkdir() local 55 result = new_inode(dir->i_sb); in hpfs_mkdir() 56 if (!result) in hpfs_mkdir() 58 hpfs_init_inode(result); in hpfs_mkdir() 59 result->i_ino = fno; in hpfs_mkdir() 60 hpfs_i(result)->i_parent_dir = dir->i_ino; in hpfs_mkdir() 61 hpfs_i(result)->i_dno = dno; in hpfs_mkdir() 62 …result->i_ctime.tv_sec = result->i_mtime.tv_sec = result->i_atime.tv_sec = local_to_gmt(dir->i_sb,… in hpfs_mkdir() 63 result->i_ctime.tv_nsec = 0; in hpfs_mkdir() 64 result->i_mtime.tv_nsec = 0; in hpfs_mkdir() [all …]
|
D | dir.c | 210 struct inode *result = NULL; in hpfs_lookup() local 244 result = iget_locked(dir->i_sb, ino); in hpfs_lookup() 245 if (!result) { in hpfs_lookup() 247 result = ERR_PTR(-ENOMEM); in hpfs_lookup() 250 if (result->i_state & I_NEW) { in hpfs_lookup() 251 hpfs_init_inode(result); in hpfs_lookup() 253 hpfs_read_inode(result); in hpfs_lookup() 255 hpfs_read_inode(result); in hpfs_lookup() 257 result->i_mode |= S_IFREG; in hpfs_lookup() 258 result->i_mode &= ~0111; in hpfs_lookup() [all …]
|
/fs/incfs/ |
D | format.c | 21 struct backing_file_context *result = NULL; in incfs_alloc_bfc() local 23 result = kzalloc(sizeof(*result), GFP_NOFS); in incfs_alloc_bfc() 24 if (!result) in incfs_alloc_bfc() 27 result->bc_file = get_file(backing_file); in incfs_alloc_bfc() 28 result->bc_cred = mi->mi_owner; in incfs_alloc_bfc() 29 mutex_init(&result->bc_mutex); in incfs_alloc_bfc() 30 return result; in incfs_alloc_bfc() 65 int result = 0; in truncate_backing_file() local 88 result = notify_change(&init_user_ns, dentry, &attr, NULL); in truncate_backing_file() 91 return result; in truncate_backing_file() [all …]
|
D | integrity.c | 19 struct incfs_hash_alg *result = NULL; in incfs_get_hash_alg() local 24 result = &sha256; in incfs_get_hash_alg() 27 if (result == NULL) in incfs_get_hash_alg() 31 shash = smp_load_acquire(&result->shash); in incfs_get_hash_alg() 33 return result; in incfs_get_hash_alg() 35 shash = crypto_alloc_shash(result->name, 0, 0); in incfs_get_hash_alg() 40 result->name, err); in incfs_get_hash_alg() 45 if (cmpxchg_release(&result->shash, NULL, shash) != NULL) in incfs_get_hash_alg() 48 return result; in incfs_get_hash_alg() 59 static bool read_u32(u8 **p, u8 *top, u32 *result) in read_u32() argument [all …]
|
D | data_mgmt.c | 189 char *result = kmalloc(1 + sizeof(id.bytes) * 2, GFP_NOFS); in file_id_to_str() local 192 if (!result) in file_id_to_str() 195 end = bin2hex(result, id.bytes, sizeof(id.bytes)); in file_id_to_str() 197 return result; in file_id_to_str() 203 struct dentry *result = NULL; in incfs_lookup_dentry() local 210 result = lookup_one_len(name, parent, strlen(name)); in incfs_lookup_dentry() 213 if (IS_ERR(result)) in incfs_lookup_dentry() 214 pr_warn("%s err:%ld\n", __func__, PTR_ERR(result)); in incfs_lookup_dentry() 216 return result; in incfs_lookup_dentry() 226 struct data_file *result = NULL; in handle_mapped_file() local [all …]
|
/fs/nfs/ |
D | nfs3xdr.c | 1394 void *result) in nfs3_xdr_dec_getattr3res() argument 1404 error = decode_fattr3(xdr, result, rpc_rqst_userns(req)); in nfs3_xdr_dec_getattr3res() 1431 void *result) in nfs3_xdr_dec_setattr3res() argument 1439 error = decode_wcc_data(xdr, result, rpc_rqst_userns(req)); in nfs3_xdr_dec_setattr3res() 1475 struct nfs3_diropres *result = data; in nfs3_xdr_dec_lookup3res() local 1484 error = decode_nfs_fh3(xdr, result->fh); in nfs3_xdr_dec_lookup3res() 1487 error = decode_post_op_attr(xdr, result->fattr, userns); in nfs3_xdr_dec_lookup3res() 1490 error = decode_post_op_attr(xdr, result->dir_attr, userns); in nfs3_xdr_dec_lookup3res() 1494 error = decode_post_op_attr(xdr, result->dir_attr, userns); in nfs3_xdr_dec_lookup3res() 1523 struct nfs3_accessres *result = data; in nfs3_xdr_dec_access3res() local [all …]
|
D | direct.c | 243 ssize_t result = -EIOCBQUEUED; in nfs_direct_wait() local 249 result = wait_for_completion_killable(&dreq->completion); in nfs_direct_wait() 251 if (!result) { in nfs_direct_wait() 252 result = dreq->count; in nfs_direct_wait() 255 if (!result) in nfs_direct_wait() 256 result = dreq->error; in nfs_direct_wait() 259 return (ssize_t) result; in nfs_direct_wait() 353 ssize_t result = -EINVAL; in nfs_direct_read_schedule_iovec() local 369 result = iov_iter_get_pages_alloc(iter, &pagevec, in nfs_direct_read_schedule_iovec() 371 if (result < 0) in nfs_direct_read_schedule_iovec() [all …]
|
D | file.c | 161 ssize_t result; in nfs_file_read() local 171 result = nfs_revalidate_mapping(inode, iocb->ki_filp->f_mapping); in nfs_file_read() 172 if (!result) { in nfs_file_read() 173 result = generic_file_read_iter(iocb, to); in nfs_file_read() 174 if (result > 0) in nfs_file_read() 175 nfs_add_stats(inode, NFSIOS_NORMALREADBYTES, result); in nfs_file_read() 178 return result; in nfs_file_read() 603 ssize_t result, written; in nfs_file_write() local 607 result = nfs_key_timeout_notify(file, inode); in nfs_file_write() 608 if (result) in nfs_file_write() [all …]
|
D | fs_context.c | 474 struct fs_parse_result result; in nfs_fs_context_parse_param() local 482 opt = fs_parse(fc, nfs_fs_parameters, param, &result); in nfs_fs_context_parse_param() 514 if (result.negated) in nfs_fs_context_parse_param() 520 if (result.negated) in nfs_fs_context_parse_param() 526 if (result.negated) in nfs_fs_context_parse_param() 532 if (result.negated) in nfs_fs_context_parse_param() 538 if (result.negated) { in nfs_fs_context_parse_param() 559 if (result.negated) in nfs_fs_context_parse_param() 565 if (result.negated) in nfs_fs_context_parse_param() 571 if (result.negated) in nfs_fs_context_parse_param() [all …]
|
D | nfs2xdr.c | 97 static int decode_nfsdata(struct xdr_stream *xdr, struct nfs_pgio_res *result) in decode_nfsdata() argument 110 result->eof = 0; /* NFSv2 does not pass EOF flag on the wire. */ in decode_nfsdata() 111 result->count = count; in decode_nfsdata() 465 static int decode_attrstat(struct xdr_stream *xdr, struct nfs_fattr *result, in decode_attrstat() argument 479 error = decode_fattr(xdr, result, userns); in decode_attrstat() 514 static int decode_diropok(struct xdr_stream *xdr, struct nfs_diropok *result, in decode_diropok() argument 519 error = decode_fhandle(xdr, result->fh); in decode_diropok() 522 error = decode_fattr(xdr, result->fattr, userns); in decode_diropok() 527 static int decode_diropres(struct xdr_stream *xdr, struct nfs_diropok *result, in decode_diropres() argument 538 error = decode_diropok(xdr, result, userns); in decode_diropres() [all …]
|
D | nfs3acl.c | 310 size_t size, ssize_t *result) in nfs3_list_one_acl() argument 313 char *p = data + *result; in nfs3_list_one_acl() 321 *result += strlen(name); in nfs3_list_one_acl() 322 *result += 1; in nfs3_list_one_acl() 325 if (*result > size) in nfs3_list_one_acl() 336 ssize_t result = 0; in nfs3_listxattr() local 340 XATTR_NAME_POSIX_ACL_ACCESS, data, size, &result); in nfs3_listxattr() 345 XATTR_NAME_POSIX_ACL_DEFAULT, data, size, &result); in nfs3_listxattr() 348 return result; in nfs3_listxattr()
|
/fs/ |
D | fs_parser.c | 106 struct fs_parse_result *result) in __fs_parse() argument 110 result->uint_64 = 0; in __fs_parse() 112 p = fs_lookup_key(desc, param, &result->negated); in __fs_parse() 126 result->boolean = !result->negated; in __fs_parse() 128 int ret = p->type(log, p, param, result); in __fs_parse() 197 struct fs_parameter *param, struct fs_parse_result *result) in fs_param_is_bool() argument 205 result->boolean = b; in fs_param_is_bool() 211 struct fs_parameter *param, struct fs_parse_result *result) in fs_param_is_u32() argument 215 kstrtouint(param->string, base, &result->uint_32) < 0) in fs_param_is_u32() 222 struct fs_parameter *param, struct fs_parse_result *result) in fs_param_is_s32() argument [all …]
|
D | readdir.c | 140 int result; member 151 if (buf->result) in fillonedir() 153 buf->result = verify_dirent_name(name, namlen); in fillonedir() 154 if (buf->result < 0) in fillonedir() 155 return buf->result; in fillonedir() 158 buf->result = -EOVERFLOW; in fillonedir() 161 buf->result++; in fillonedir() 176 buf->result = -EFAULT; in fillonedir() 194 if (buf.result) in SYSCALL_DEFINE3() 195 error = buf.result; in SYSCALL_DEFINE3() [all …]
|
D | binfmt_flat.c | 472 ssize_t result; in load_flat_file() local 634 result = decompress_exec(bprm, fpos, (char *)datapos, in load_flat_file() 639 result = read_code(bprm->file, datapos, fpos, in load_flat_file() 642 if (IS_ERR_VALUE(result)) { in load_flat_file() 643 ret = result; in load_flat_file() 686 result = decompress_exec(bprm, sizeof(struct flat_hdr), in load_flat_file() 702 result = -ENOMEM; in load_flat_file() 704 result = decompress_exec(bprm, sizeof(struct flat_hdr), in load_flat_file() 706 if (result == 0 && in load_flat_file() 711 result = -EFAULT; in load_flat_file() [all …]
|
/fs/exportfs/ |
D | expfs.c | 43 find_acceptable_alias(struct dentry *result, in find_acceptable_alias() argument 50 if (acceptable(context, result)) in find_acceptable_alias() 51 return result; in find_acceptable_alias() 53 inode = result->d_inode; in find_acceptable_alias() 60 if (dentry != result && acceptable(context, dentry)) { in find_acceptable_alias() 61 dput(result); in find_acceptable_alias() 256 int result = 0; in filldir_one() local 263 result = -1; in filldir_one() 265 return result; in filldir_one() 427 struct dentry *result, *alias; in exportfs_decode_fh_raw() local [all …]
|
/fs/ufs/ |
D | balloc.c | 352 u64 tmp, request, result; in ufs_new_fragments() local 423 result = ufs_alloc_fragments (inode, cgno, goal, count, err); in ufs_new_fragments() 424 if (result) { in ufs_new_fragments() 425 ufs_clear_frags(inode, result + oldcount, in ufs_new_fragments() 429 ufs_cpu_to_data_ptr(sb, p, result); in ufs_new_fragments() 435 UFSD("EXIT, result %llu\n", (unsigned long long)result); in ufs_new_fragments() 436 return result; in ufs_new_fragments() 442 result = ufs_add_fragments(inode, tmp, oldcount, newcount); in ufs_new_fragments() 443 if (result) { in ufs_new_fragments() 449 ufs_clear_frags(inode, result + oldcount, newcount - oldcount, in ufs_new_fragments() [all …]
|
/fs/cifs/ |
D | fs_context.c | 828 struct fs_parse_result result; in smb3_fs_context_parse_param() local 853 opt = fs_parse(fc, smb3_fs_parameters, param, &result); in smb3_fs_context_parse_param() 868 if (result.negated) in smb3_fs_context_parse_param() 874 if (result.negated) in smb3_fs_context_parse_param() 880 if (result.negated) in smb3_fs_context_parse_param() 888 if (result.negated) in smb3_fs_context_parse_param() 896 if (result.negated) in smb3_fs_context_parse_param() 902 if (result.negated) in smb3_fs_context_parse_param() 908 if (result.negated) in smb3_fs_context_parse_param() 914 if (result.negated) in smb3_fs_context_parse_param() [all …]
|
/fs/xfs/libxfs/ |
D | xfs_bit.c | 40 uint result = 0; in xfs_contig_bits() local 54 result += NBWORD; in xfs_contig_bits() 60 result += NBWORD; in xfs_contig_bits() 63 return result - start_bit; in xfs_contig_bits() 65 return result + ffz(tmp) - start_bit; in xfs_contig_bits() 79 uint result = start_bit & ~(NBWORD - 1); in xfs_next_bit() local 86 size -= result; in xfs_next_bit() 94 result += NBWORD; in xfs_next_bit() 100 result += NBWORD; in xfs_next_bit() 105 return result + ffs(tmp) - 1; in xfs_next_bit()
|
/fs/lockd/ |
D | clntxdr.c | 235 const struct nlm_res *result) in encode_nlm_holder() argument 237 const struct nlm_lock *lock = &result->lock; in encode_nlm_holder() 251 static int decode_nlm_holder(struct xdr_stream *xdr, struct nlm_res *result) in decode_nlm_holder() argument 253 struct nlm_lock *lock = &result->lock; in decode_nlm_holder() 437 const struct nlm_res *result = data; in nlm_xdr_enc_res() local 439 encode_cookie(xdr, &result->cookie); in nlm_xdr_enc_res() 440 encode_nlm_stat(xdr, result->status); in nlm_xdr_enc_res() 457 const struct nlm_res *result) in encode_nlm_testrply() argument 459 if (result->status == nlm_lck_denied) in encode_nlm_testrply() 460 encode_nlm_holder(xdr, result); in encode_nlm_testrply() [all …]
|
D | clnt4xdr.c | 240 const struct nlm_res *result) in encode_nlm4_holder() argument 242 const struct nlm_lock *lock = &result->lock; in encode_nlm4_holder() 256 static int decode_nlm4_holder(struct xdr_stream *xdr, struct nlm_res *result) in decode_nlm4_holder() argument 258 struct nlm_lock *lock = &result->lock; in decode_nlm4_holder() 437 const struct nlm_res *result = data; in nlm4_xdr_enc_res() local 439 encode_cookie(xdr, &result->cookie); in nlm4_xdr_enc_res() 440 encode_nlm4_stat(xdr, result->status); in nlm4_xdr_enc_res() 460 const struct nlm_res *result = data; in nlm4_xdr_enc_testres() local 462 encode_cookie(xdr, &result->cookie); in nlm4_xdr_enc_testres() 463 encode_nlm4_stat(xdr, result->status); in nlm4_xdr_enc_testres() [all …]
|
/fs/dlm/ |
D | lowcomms.c | 989 int result; in accept_from_sock() local 1001 result = kernel_accept(con->sock, &newsock, O_NONBLOCK); in accept_from_sock() 1002 if (result < 0) in accept_from_sock() 1009 result = -ECONNABORTED; in accept_from_sock() 1035 result = -ENOMEM; in accept_from_sock() 1051 result = -ENOMEM; in accept_from_sock() 1055 result = dlm_con_init(othercon, nodeid); in accept_from_sock() 1056 if (result < 0) { in accept_from_sock() 1104 if (result != -EAGAIN) in accept_from_sock() 1105 log_print("error accepting connection from node: %d", result); in accept_from_sock() [all …]
|
/fs/ceph/ |
D | super.c | 289 struct fs_parse_result result; in ceph_parse_mount_param() local 297 token = fs_parse(fc, ceph_mount_parameters, param, &result); in ceph_parse_mount_param() 314 mode = result.uint_32; in ceph_parse_mount_param() 327 if (result.uint_32 < PAGE_SIZE || in ceph_parse_mount_param() 328 result.uint_32 > CEPH_MAX_WRITE_SIZE) in ceph_parse_mount_param() 330 fsopt->wsize = ALIGN(result.uint_32, PAGE_SIZE); in ceph_parse_mount_param() 333 if (result.uint_32 < PAGE_SIZE || in ceph_parse_mount_param() 334 result.uint_32 > CEPH_MAX_READ_SIZE) in ceph_parse_mount_param() 336 fsopt->rsize = ALIGN(result.uint_32, PAGE_SIZE); in ceph_parse_mount_param() 339 fsopt->rasize = ALIGN(result.uint_32, PAGE_SIZE); in ceph_parse_mount_param() [all …]
|
/fs/ocfs2/ |
D | export.c | 41 struct dentry *result; in ocfs2_get_dentry() local 46 result = ERR_PTR(-ESTALE); in ocfs2_get_dentry() 100 result = ERR_PTR(status); in ocfs2_get_dentry() 106 result = ERR_CAST(inode); in ocfs2_get_dentry() 116 result = ERR_PTR(-ESTALE); in ocfs2_get_dentry() 120 result = d_obtain_alias(inode); in ocfs2_get_dentry() 121 if (IS_ERR(result)) in ocfs2_get_dentry() 122 mlog_errno(PTR_ERR(result)); in ocfs2_get_dentry() 125 trace_ocfs2_get_dentry_end(result); in ocfs2_get_dentry() 126 return result; in ocfs2_get_dentry()
|
/fs/vboxsf/ |
D | super.c | 57 struct fs_parse_result result; in vboxsf_parse_param() local 62 opt = fs_parse(fc, vboxsf_fs_parameters, param, &result); in vboxsf_parse_param() 76 uid = make_kuid(current_user_ns(), result.uint_32); in vboxsf_parse_param() 82 gid = make_kgid(current_user_ns(), result.uint_32); in vboxsf_parse_param() 88 ctx->o.ttl = msecs_to_jiffies(result.uint_32); in vboxsf_parse_param() 91 if (result.uint_32 & ~0777) in vboxsf_parse_param() 93 ctx->o.dmode = result.uint_32; in vboxsf_parse_param() 97 if (result.uint_32 & ~0777) in vboxsf_parse_param() 99 ctx->o.fmode = result.uint_32; in vboxsf_parse_param() 103 if (result.uint_32 & ~07777) in vboxsf_parse_param() [all …]
|
/fs/adfs/ |
D | map.c | 164 int result; in scan_map() local 171 result = lookup_zone(dm, idlen, frag_id, &mapoff); in scan_map() 173 if (result != -1) in scan_map() 183 result -= dm->dm_startbit; in scan_map() 184 result += dm->dm_startblk; in scan_map() 186 return result; in scan_map() 221 int result; in adfs_map_lookup() local 239 result = scan_map(asb, zone, frag_id, mapoff); in adfs_map_lookup() 242 if (result > 0) { in adfs_map_lookup() 247 return secoff + signed_asl(result, asb->s_map2blk); in adfs_map_lookup()
|