/fs/hpfs/ |
D | namei.c | 32 struct inode *result; in hpfs_mkdir() local 54 result = new_inode(dir->i_sb); in hpfs_mkdir() 55 if (!result) in hpfs_mkdir() 57 hpfs_init_inode(result); in hpfs_mkdir() 58 result->i_ino = fno; in hpfs_mkdir() 59 hpfs_i(result)->i_parent_dir = dir->i_ino; in hpfs_mkdir() 60 hpfs_i(result)->i_dno = dno; in hpfs_mkdir() 61 …result->i_ctime.tv_sec = result->i_mtime.tv_sec = result->i_atime.tv_sec = local_to_gmt(dir->i_sb,… in hpfs_mkdir() 62 result->i_ctime.tv_nsec = 0; in hpfs_mkdir() 63 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 | 19 struct backing_file_context *result = NULL; in incfs_alloc_bfc() local 21 result = kzalloc(sizeof(*result), GFP_NOFS); in incfs_alloc_bfc() 22 if (!result) in incfs_alloc_bfc() 25 result->bc_file = get_file(backing_file); in incfs_alloc_bfc() 26 mutex_init(&result->bc_mutex); in incfs_alloc_bfc() 27 return result; in incfs_alloc_bfc() 62 int result = 0; in truncate_backing_file() local 85 result = notify_change(dentry, &attr, NULL); in truncate_backing_file() 88 return result; in truncate_backing_file() 140 u32 result = 0; in calc_md_crc() local [all …]
|
D | integrity.c | 84 struct incfs_hash_alg *result = NULL; in incfs_get_hash_alg() local 89 result = &sha256; in incfs_get_hash_alg() 92 if (result == NULL) in incfs_get_hash_alg() 96 shash = smp_load_acquire(&result->shash); in incfs_get_hash_alg() 98 return result; in incfs_get_hash_alg() 100 shash = crypto_alloc_shash(result->name, 0, 0); in incfs_get_hash_alg() 105 result->name, err); in incfs_get_hash_alg() 110 if (cmpxchg_release(&result->shash, NULL, shash) != NULL) in incfs_get_hash_alg() 113 return result; in incfs_get_hash_alg() 121 struct mtree *result = NULL; in incfs_alloc_mtree() local [all …]
|
D | data_mgmt.c | 209 int result = LZ4_decompress_safe(src.data, dst.data, src.len, dst.len); in decompress() local 211 if (result < 0) in decompress() 214 return result; in decompress() 327 int result = 0; in revalidate_signature() local 342 result = -ENOMEM; in revalidate_signature() 349 result = read_res; in revalidate_signature() 353 result = -EIO; in revalidate_signature() 359 result = -ENOMEM; in revalidate_signature() 365 result = read_res; in revalidate_signature() 369 result = -EIO; in revalidate_signature() [all …]
|
D | vfs.c | 303 struct mount_info *result = sb->s_fs_info; in get_mount_info() local 305 WARN_ON(!result); in get_mount_info() 306 return result; in get_mount_info() 452 ssize_t result = 0; in pending_reads_read() local 471 result = reads_collected; in pending_reads_read() 484 result = reads_collected * sizeof(*reads_buf); in pending_reads_read() 487 if (copy_to_user(buf, reads_buf, result)) { in pending_reads_read() 488 result = -EFAULT; in pending_reads_read() 497 return result; in pending_reads_read() 580 ssize_t result = 0; in log_read() 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 | 343 ssize_t result = -EIOCBQUEUED; in nfs_direct_wait() local 349 result = wait_for_completion_killable(&dreq->completion); in nfs_direct_wait() 351 if (!result) { in nfs_direct_wait() 352 result = dreq->count; in nfs_direct_wait() 355 if (!result) in nfs_direct_wait() 356 result = dreq->error; in nfs_direct_wait() 359 return (ssize_t) result; in nfs_direct_wait() 453 ssize_t result = -EINVAL; in nfs_direct_read_schedule_iovec() local 469 result = iov_iter_get_pages_alloc(iter, &pagevec, in nfs_direct_read_schedule_iovec() 471 if (result < 0) in nfs_direct_read_schedule_iovec() [all …]
|
D | file.c | 158 ssize_t result; in nfs_file_read() local 168 result = nfs_revalidate_mapping(inode, iocb->ki_filp->f_mapping); in nfs_file_read() 169 if (!result) { in nfs_file_read() 170 result = generic_file_read_iter(iocb, to); in nfs_file_read() 171 if (result > 0) in nfs_file_read() 172 nfs_add_stats(inode, NFSIOS_NORMALREADBYTES, result); in nfs_file_read() 175 return result; in nfs_file_read() 598 ssize_t result; in nfs_file_write() local 600 result = nfs_key_timeout_notify(file, inode); in nfs_file_write() 601 if (result) in nfs_file_write() [all …]
|
D | nfs2xdr.c | 96 static int decode_nfsdata(struct xdr_stream *xdr, struct nfs_pgio_res *result) in decode_nfsdata() argument 109 result->eof = 0; /* NFSv2 does not pass EOF flag on the wire. */ in decode_nfsdata() 110 result->count = count; in decode_nfsdata() 469 static int decode_attrstat(struct xdr_stream *xdr, struct nfs_fattr *result, in decode_attrstat() argument 483 error = decode_fattr(xdr, result, userns); in decode_attrstat() 518 static int decode_diropok(struct xdr_stream *xdr, struct nfs_diropok *result, in decode_diropok() argument 523 error = decode_fhandle(xdr, result->fh); in decode_diropok() 526 error = decode_fattr(xdr, result->fattr, userns); in decode_diropok() 531 static int decode_diropres(struct xdr_stream *xdr, struct nfs_diropok *result, in decode_diropres() argument 542 error = decode_diropok(xdr, result, userns); in decode_diropres() [all …]
|
D | nfs3acl.c | 297 size_t size, ssize_t *result) in nfs3_list_one_acl() argument 300 char *p = data + *result; in nfs3_list_one_acl() 308 *result += strlen(name); in nfs3_list_one_acl() 309 *result += 1; in nfs3_list_one_acl() 312 if (*result > size) in nfs3_list_one_acl() 323 ssize_t result = 0; in nfs3_listxattr() local 327 XATTR_NAME_POSIX_ACL_ACCESS, data, size, &result); in nfs3_listxattr() 332 XATTR_NAME_POSIX_ACL_DEFAULT, data, size, &result); in nfs3_listxattr() 335 return result; in nfs3_listxattr()
|
/fs/ |
D | fs_parser.c | 82 struct fs_parse_result *result) in fs_parse() argument 88 result->has_value = !!param->string; in fs_parse() 89 result->negated = false; in fs_parse() 90 result->uint_64 = 0; in fs_parse() 98 if (result->has_value) in fs_parse() 108 result->boolean = false; in fs_parse() 109 result->negated = true; in fs_parse() 116 if (result->negated) in fs_parse() 132 if (!result->has_value) { in fs_parse() 148 (param->type != fs_value_is_string || result->has_value)) in fs_parse() [all …]
|
D | binfmt_flat.c | 437 ssize_t result; in load_flat_file() local 596 result = decompress_exec(bprm, fpos, (char *)datapos, in load_flat_file() 601 result = read_code(bprm->file, datapos, fpos, in load_flat_file() 604 if (IS_ERR_VALUE(result)) { in load_flat_file() 605 ret = result; in load_flat_file() 645 result = decompress_exec(bprm, sizeof(struct flat_hdr), in load_flat_file() 662 result = -ENOMEM; in load_flat_file() 664 result = decompress_exec(bprm, sizeof(struct flat_hdr), in load_flat_file() 666 if (result == 0 && in load_flat_file() 671 result = -EFAULT; in load_flat_file() [all …]
|
D | readdir.c | 140 int result; member 151 if (buf->result) in fillonedir() 155 buf->result = -EOVERFLOW; in fillonedir() 158 buf->result++; in fillonedir() 172 buf->result = -EFAULT; in fillonedir() 190 if (buf.result) in SYSCALL_DEFINE3() 191 error = buf.result; in SYSCALL_DEFINE3() 406 int result; member 418 if (buf->result) in compat_fillonedir() 422 buf->result = -EOVERFLOW; in compat_fillonedir() [all …]
|
/fs/dlm/ |
D | lowcomms.c | 729 int result; in tcp_accept_from_sock() local 751 result = kernel_accept(con->sock, &newsock, O_NONBLOCK); in tcp_accept_from_sock() 752 if (result < 0) in tcp_accept_from_sock() 759 result = -ECONNABORTED; in tcp_accept_from_sock() 784 result = -ENOMEM; in tcp_accept_from_sock() 796 result = -ENOMEM; in tcp_accept_from_sock() 817 result = -EAGAIN; in tcp_accept_from_sock() 850 if (result != -EAGAIN) in tcp_accept_from_sock() 851 log_print("error accepting connection from node: %d", result); in tcp_accept_from_sock() 852 return result; in tcp_accept_from_sock() [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() 425 struct dentry *result, *alias; in exportfs_decode_fh() 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/xfs/libxfs/ |
D | xfs_bit.c | 39 uint result = 0; in xfs_contig_bits() local 53 result += NBWORD; in xfs_contig_bits() 59 result += NBWORD; in xfs_contig_bits() 62 return result - start_bit; in xfs_contig_bits() 64 return result + ffz(tmp) - start_bit; in xfs_contig_bits() 78 uint result = start_bit & ~(NBWORD - 1); in xfs_next_bit() local 85 size -= result; in xfs_next_bit() 93 result += NBWORD; in xfs_next_bit() 99 result += NBWORD; in xfs_next_bit() 104 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() 444 const struct nlm_res *result = data; in nlm4_xdr_enc_res() local 446 encode_cookie(xdr, &result->cookie); in nlm4_xdr_enc_res() 447 encode_nlm4_stat(xdr, result->status); in nlm4_xdr_enc_res() 467 const struct nlm_res *result = data; in nlm4_xdr_enc_testres() local 469 encode_cookie(xdr, &result->cookie); in nlm4_xdr_enc_testres() 470 encode_nlm4_stat(xdr, result->status); in nlm4_xdr_enc_testres() [all …]
|
/fs/adfs/ |
D | map.c | 191 int result; in scan_map() local 198 result = lookup_zone(dm, idlen, frag_id, &mapoff); in scan_map() 200 if (result != -1) in scan_map() 210 result -= dm->dm_startbit; in scan_map() 211 result += dm->dm_startblk; in scan_map() 213 return result; in scan_map() 245 int result; in adfs_map_lookup() local 263 result = scan_map(asb, zone, frag_id, mapoff); in adfs_map_lookup() 266 if (result > 0) { in adfs_map_lookup() 271 return secoff + signed_asl(result, asb->s_map2blk); in adfs_map_lookup()
|
/fs/jbd2/ |
D | checkpoint.c | 210 int result, batch_count = 0; in jbd2_log_do_checkpoint() local 219 result = jbd2_cleanup_journal_tail(journal); in jbd2_log_do_checkpoint() 220 trace_jbd2_checkpoint(journal, result); in jbd2_log_do_checkpoint() 221 jbd_debug(1, "cleanup_journal_tail returned %d\n", result); in jbd2_log_do_checkpoint() 222 if (result <= 0) in jbd2_log_do_checkpoint() 223 return result; in jbd2_log_do_checkpoint() 229 result = 0; in jbd2_log_do_checkpoint() 296 if (unlikely(buffer_write_io_error(bh)) && !result) in jbd2_log_do_checkpoint() 297 result = -EIO; in jbd2_log_do_checkpoint() 357 if (unlikely(buffer_write_io_error(bh)) && !result) in jbd2_log_do_checkpoint() [all …]
|
/fs/ocfs2/ |
D | export.c | 43 struct dentry *result; in ocfs2_get_dentry() local 48 result = ERR_PTR(-ESTALE); in ocfs2_get_dentry() 102 result = ERR_PTR(status); in ocfs2_get_dentry() 108 result = ERR_CAST(inode); in ocfs2_get_dentry() 118 result = ERR_PTR(-ESTALE); in ocfs2_get_dentry() 122 result = d_obtain_alias(inode); in ocfs2_get_dentry() 123 if (IS_ERR(result)) in ocfs2_get_dentry() 124 mlog_errno(PTR_ERR(result)); in ocfs2_get_dentry() 127 trace_ocfs2_get_dentry_end(result); in ocfs2_get_dentry() 128 return result; in ocfs2_get_dentry()
|
/fs/befs/ |
D | linuxvfs.c | 221 int result; in befs_readdir() local 229 result = befs_btree_read(sb, ds, ctx->pos, BEFS_NAME_LEN + 1, in befs_readdir() 232 if (result == BEFS_ERR) { in befs_readdir() 238 } else if (result == BEFS_BT_END) { in befs_readdir() 242 } else if (result == BEFS_BT_EMPTY) { in befs_readdir() 252 result = in befs_readdir() 255 if (result < 0) { in befs_readdir() 257 return result; in befs_readdir() 512 char *result; in befs_utf2nls() local 526 *out = result = kmalloc(maxlen, GFP_NOFS); in befs_utf2nls() [all …]
|
/fs/sysfs/ |
D | symlink.c | 171 int result; in sysfs_rename_link_ns() local 181 result = -ENOENT; in sysfs_rename_link_ns() 186 result = -EINVAL; in sysfs_rename_link_ns() 192 result = kernfs_rename_ns(kn, parent, new, new_ns); in sysfs_rename_link_ns() 196 return result; in sysfs_rename_link_ns()
|