/fs/hpfs/ |
D | namei.c | 31 struct inode *result; in hpfs_mkdir() local 53 result = new_inode(dir->i_sb); in hpfs_mkdir() 54 if (!result) in hpfs_mkdir() 56 hpfs_init_inode(result); in hpfs_mkdir() 57 result->i_ino = fno; in hpfs_mkdir() 58 hpfs_i(result)->i_parent_dir = dir->i_ino; in hpfs_mkdir() 59 hpfs_i(result)->i_dno = dno; in hpfs_mkdir() 60 …result->i_ctime.tv_sec = result->i_mtime.tv_sec = result->i_atime.tv_sec = local_to_gmt(dir->i_sb,… in hpfs_mkdir() 61 result->i_ctime.tv_nsec = 0; in hpfs_mkdir() 62 result->i_mtime.tv_nsec = 0; in hpfs_mkdir() [all …]
|
D | dir.c | 204 struct inode *result = NULL; in hpfs_lookup() local 238 result = iget_locked(dir->i_sb, ino); in hpfs_lookup() 239 if (!result) { in hpfs_lookup() 243 if (result->i_state & I_NEW) { in hpfs_lookup() 244 hpfs_init_inode(result); in hpfs_lookup() 246 hpfs_read_inode(result); in hpfs_lookup() 248 hpfs_read_inode(result); in hpfs_lookup() 250 result->i_mode |= S_IFREG; in hpfs_lookup() 251 result->i_mode &= ~0111; in hpfs_lookup() 252 result->i_op = &hpfs_file_iops; in hpfs_lookup() [all …]
|
/fs/ncpfs/ |
D | ncplib_kernel.c | 155 int result; in ncp_negotiate_buffersize() local 160 if ((result = ncp_request(server, 33)) != 0) { in ncp_negotiate_buffersize() 162 return result; in ncp_negotiate_buffersize() 178 int result; in ncp_negotiate_size_and_options() local 187 if ((result = ncp_request(server, 0x61)) != 0) in ncp_negotiate_size_and_options() 190 return result; in ncp_negotiate_size_and_options() 194 result = ncp_reply_be16(server, 0); in ncp_negotiate_size_and_options() 195 if (result >= NCP_BLOCK_SIZE) in ncp_negotiate_size_and_options() 196 size = min(result, size); in ncp_negotiate_size_and_options() 206 int result; in ncp_get_volume_info_with_number() local [all …]
|
D | sock.c | 64 int result; member 134 …nline void ncp_finish_request(struct ncp_server *server, struct ncp_request_reply *req, int result) in ncp_finish_request() argument 136 req->result = result; in ncp_finish_request() 220 int result; in __ncptcp_try_send() local 228 result = do_send(server->ncp_sock, iovc, rq->tx_iovlen, in __ncptcp_try_send() 231 if (result == -EAGAIN) in __ncptcp_try_send() 234 if (result < 0) { in __ncptcp_try_send() 235 pr_err("tcp: Send failed: %d\n", result); in __ncptcp_try_send() 236 __ncp_abort_request(server, rq, result); in __ncptcp_try_send() 239 if (result >= rq->tx_totallen) { in __ncptcp_try_send() [all …]
|
D | ioctl.c | 260 int result; in __ncp_ioctl() local 304 result = ncp_request2(server, request.function, in __ncp_ioctl() 306 if (result < 0) in __ncp_ioctl() 307 result = -EIO; in __ncp_ioctl() 309 result = server->reply_size; in __ncp_ioctl() 311 ncp_dbg(1, "copy %d bytes\n", result); in __ncp_ioctl() 312 if (result >= 0) in __ncp_ioctl() 313 if (copy_to_user(request.data, bouncebuffer, result)) in __ncp_ioctl() 314 result = -EFAULT; in __ncp_ioctl() 316 return result; in __ncp_ioctl() [all …]
|
D | file.c | 51 int result; in ncp_make_open() local 55 result = ncp_open_create_file_or_subdir(NCP_SERVER(inode), in ncp_make_open() 58 if (!result) in ncp_make_open() 64 result = ncp_open_create_file_or_subdir(NCP_SERVER(inode), in ncp_make_open() 70 result = ncp_open_create_file_or_subdir(NCP_SERVER(inode), in ncp_make_open() 75 if (result) { in ncp_make_open() 76 ncp_vdbg("failed, result=%d\n", result); in ncp_make_open()
|
D | dir.c | 425 int result, mtime_valid = 0; in ncp_readdir() local 433 result = -EIO; in ncp_readdir() 438 result = 0; in ncp_readdir() 566 return result; in ncp_readdir() 787 int result; in ncp_conn_logged_in() local 798 result = ncp_io2vol(server, __name, &len, server->m.mounted_vol, in ncp_conn_logged_in() 800 if (result) in ncp_conn_logged_in() 802 result = -ENOENT; in ncp_conn_logged_in() 815 result = 0; in ncp_conn_logged_in() 823 result = 0; in ncp_conn_logged_in() [all …]
|
/fs/nfs/ |
D | nfs3xdr.c | 1386 struct nfs_fattr *result) in nfs3_xdr_dec_getattr3res() argument 1396 error = decode_fattr3(xdr, result); in nfs3_xdr_dec_getattr3res() 1423 struct nfs_fattr *result) in nfs3_xdr_dec_setattr3res() argument 1431 error = decode_wcc_data(xdr, result); in nfs3_xdr_dec_setattr3res() 1464 struct nfs3_diropres *result) in nfs3_xdr_dec_lookup3res() argument 1474 error = decode_nfs_fh3(xdr, result->fh); in nfs3_xdr_dec_lookup3res() 1477 error = decode_post_op_attr(xdr, result->fattr); in nfs3_xdr_dec_lookup3res() 1480 error = decode_post_op_attr(xdr, result->dir_attr); in nfs3_xdr_dec_lookup3res() 1484 error = decode_post_op_attr(xdr, result->dir_attr); in nfs3_xdr_dec_lookup3res() 1511 struct nfs3_accessres *result) in nfs3_xdr_dec_access3res() argument [all …]
|
D | direct.c | 351 ssize_t result = -EIOCBQUEUED; in nfs_direct_wait() local 357 result = wait_for_completion_killable(&dreq->completion); in nfs_direct_wait() 359 if (!result) in nfs_direct_wait() 360 result = dreq->error; in nfs_direct_wait() 361 if (!result) in nfs_direct_wait() 362 result = dreq->count; in nfs_direct_wait() 365 return (ssize_t) result; in nfs_direct_wait() 480 ssize_t result = -EINVAL; in nfs_direct_read_schedule_iovec() local 496 result = iov_iter_get_pages_alloc(iter, &pagevec, in nfs_direct_read_schedule_iovec() 498 if (result < 0) in nfs_direct_read_schedule_iovec() [all …]
|
D | nfs2xdr.c | 106 static int decode_nfsdata(struct xdr_stream *xdr, struct nfs_pgio_res *result) in decode_nfsdata() argument 119 result->eof = 0; /* NFSv2 does not pass EOF flag on the wire. */ in decode_nfsdata() 120 result->count = count; in decode_nfsdata() 484 static int decode_attrstat(struct xdr_stream *xdr, struct nfs_fattr *result, in decode_attrstat() argument 497 error = decode_fattr(xdr, result); in decode_attrstat() 532 static int decode_diropok(struct xdr_stream *xdr, struct nfs_diropok *result) in decode_diropok() argument 536 error = decode_fhandle(xdr, result->fh); in decode_diropok() 539 error = decode_fattr(xdr, result->fattr); in decode_diropok() 544 static int decode_diropres(struct xdr_stream *xdr, struct nfs_diropok *result) in decode_diropres() argument 554 error = decode_diropok(xdr, result); in decode_diropres() [all …]
|
D | file.c | 164 ssize_t result; in nfs_file_read() local 173 result = nfs_revalidate_mapping_protected(inode, iocb->ki_filp->f_mapping); in nfs_file_read() 174 if (!result) { in nfs_file_read() 175 result = generic_file_read_iter(iocb, to); in nfs_file_read() 176 if (result > 0) in nfs_file_read() 177 nfs_add_stats(inode, NFSIOS_NORMALREADBYTES, result); in nfs_file_read() 179 return result; in nfs_file_read() 656 ssize_t result; in nfs_file_write() local 659 result = nfs_key_timeout_notify(file, inode); in nfs_file_write() 660 if (result) in nfs_file_write() [all …]
|
D | nfs3acl.c | 265 size_t size, ssize_t *result) in nfs3_list_one_acl() argument 268 char *p = data + *result; in nfs3_list_one_acl() 276 *result += strlen(name); in nfs3_list_one_acl() 277 *result += 1; in nfs3_list_one_acl() 280 if (*result > size) in nfs3_list_one_acl() 291 ssize_t result = 0; in nfs3_listxattr() local 295 POSIX_ACL_XATTR_ACCESS, data, size, &result); in nfs3_listxattr() 300 POSIX_ACL_XATTR_DEFAULT, data, size, &result); in nfs3_listxattr() 303 return result; in nfs3_listxattr()
|
/fs/dlm/ |
D | lowcomms.c | 675 int result; in tcp_accept_from_sock() local 691 result = sock_create_kern(&init_net, dlm_local_addr[0]->ss_family, in tcp_accept_from_sock() 693 if (result < 0) in tcp_accept_from_sock() 698 result = -ENOTCONN; in tcp_accept_from_sock() 705 result = con->sock->ops->accept(con->sock, newsock, O_NONBLOCK); in tcp_accept_from_sock() 706 if (result < 0) in tcp_accept_from_sock() 713 result = -ECONNABORTED; in tcp_accept_from_sock() 738 result = -ENOMEM; in tcp_accept_from_sock() 750 result = -ENOMEM; in tcp_accept_from_sock() 769 result = -EAGAIN; in tcp_accept_from_sock() [all …]
|
/fs/exportfs/ |
D | expfs.c | 41 find_acceptable_alias(struct dentry *result, in find_acceptable_alias() argument 48 if (acceptable(context, result)) in find_acceptable_alias() 49 return result; in find_acceptable_alias() 51 inode = result->d_inode; in find_acceptable_alias() 58 if (dentry != result && acceptable(context, dentry)) { in find_acceptable_alias() 59 dput(result); in find_acceptable_alias() 250 int result = 0; in filldir_one() local 257 result = -1; in filldir_one() 259 return result; in filldir_one() 418 struct dentry *result, *alias; in exportfs_decode_fh() local [all …]
|
/fs/ufs/ |
D | balloc.c | 351 u64 tmp, request, result; in ufs_new_fragments() local 420 result = ufs_alloc_fragments (inode, cgno, goal, count, err); in ufs_new_fragments() 421 if (result) { in ufs_new_fragments() 422 ufs_clear_frags(inode, result + oldcount, in ufs_new_fragments() 425 ufs_cpu_to_data_ptr(sb, p, result); in ufs_new_fragments() 432 UFSD("EXIT, result %llu\n", (unsigned long long)result); in ufs_new_fragments() 433 return result; in ufs_new_fragments() 439 result = ufs_add_fragments(inode, tmp, oldcount, newcount); in ufs_new_fragments() 440 if (result) { in ufs_new_fragments() 444 ufs_clear_frags(inode, result + oldcount, newcount - oldcount, in ufs_new_fragments() [all …]
|
/fs/xfs/libxfs/ |
D | xfs_bit.c | 52 uint result = 0; in xfs_contig_bits() local 66 result += NBWORD; in xfs_contig_bits() 72 result += NBWORD; in xfs_contig_bits() 75 return result - start_bit; in xfs_contig_bits() 77 return result + ffz(tmp) - start_bit; in xfs_contig_bits() 91 uint result = start_bit & ~(NBWORD - 1); in xfs_next_bit() local 98 size -= result; in xfs_next_bit() 106 result += NBWORD; in xfs_next_bit() 112 result += NBWORD; in xfs_next_bit() 117 return result + ffs(tmp) - 1; in xfs_next_bit()
|
/fs/lockd/ |
D | clntxdr.c | 257 const struct nlm_res *result) in encode_nlm_holder() argument 259 const struct nlm_lock *lock = &result->lock; in encode_nlm_holder() 273 static int decode_nlm_holder(struct xdr_stream *xdr, struct nlm_res *result) in decode_nlm_holder() argument 275 struct nlm_lock *lock = &result->lock; in decode_nlm_holder() 454 const struct nlm_res *result) in nlm_xdr_enc_res() argument 456 encode_cookie(xdr, &result->cookie); in nlm_xdr_enc_res() 457 encode_nlm_stat(xdr, result->status); in nlm_xdr_enc_res() 474 const struct nlm_res *result) in encode_nlm_testrply() argument 476 if (result->status == nlm_lck_denied) in encode_nlm_testrply() 477 encode_nlm_holder(xdr, result); in encode_nlm_testrply() [all …]
|
D | clnt4xdr.c | 262 const struct nlm_res *result) in encode_nlm4_holder() argument 264 const struct nlm_lock *lock = &result->lock; in encode_nlm4_holder() 278 static int decode_nlm4_holder(struct xdr_stream *xdr, struct nlm_res *result) in decode_nlm4_holder() argument 280 struct nlm_lock *lock = &result->lock; in decode_nlm4_holder() 461 const struct nlm_res *result) in nlm4_xdr_enc_res() argument 463 encode_cookie(xdr, &result->cookie); in nlm4_xdr_enc_res() 464 encode_nlm4_stat(xdr, result->status); in nlm4_xdr_enc_res() 482 const struct nlm_res *result) in nlm4_xdr_enc_testres() argument 484 encode_cookie(xdr, &result->cookie); in nlm4_xdr_enc_testres() 485 encode_nlm4_stat(xdr, result->status); in nlm4_xdr_enc_testres() [all …]
|
/fs/udf/ |
D | file.c | 168 int result = -EINVAL; in udf_ioctl() local 172 result = -EPERM; in udf_ioctl() 178 result = -EINVAL; in udf_ioctl() 186 result = -EFAULT; in udf_ioctl() 188 result = 0; in udf_ioctl() 192 result = -EPERM; in udf_ioctl() 196 result = -EFAULT; in udf_ioctl() 199 result = udf_relocate_blocks(inode->i_sb, in udf_ioctl() 201 if (result == 0) in udf_ioctl() 202 result = put_user(new_block, (long __user *)arg); in udf_ioctl() [all …]
|
/fs/adfs/ |
D | map.c | 197 int result; in scan_map() local 204 result = lookup_zone(dm, idlen, frag_id, &mapoff); in scan_map() 206 if (result != -1) in scan_map() 216 result -= dm->dm_startbit; in scan_map() 217 result += dm->dm_startblk; in scan_map() 219 return result; in scan_map() 253 int result; in adfs_map_lookup() local 271 result = scan_map(asb, zone, frag_id, mapoff); in adfs_map_lookup() 274 if (result > 0) { in adfs_map_lookup() 279 return secoff + signed_asl(result, asb->s_map2blk); in adfs_map_lookup()
|
/fs/jbd2/ |
D | checkpoint.c | 214 int result, batch_count = 0; in jbd2_log_do_checkpoint() local 223 result = jbd2_cleanup_journal_tail(journal); in jbd2_log_do_checkpoint() 224 trace_jbd2_checkpoint(journal, result); in jbd2_log_do_checkpoint() 225 jbd_debug(1, "cleanup_journal_tail returned %d\n", result); in jbd2_log_do_checkpoint() 226 if (result <= 0) in jbd2_log_do_checkpoint() 227 return result; in jbd2_log_do_checkpoint() 233 result = 0; in jbd2_log_do_checkpoint() 287 if (unlikely(buffer_write_io_error(bh)) && !result) in jbd2_log_do_checkpoint() 288 result = -EIO; in jbd2_log_do_checkpoint() 348 if (unlikely(buffer_write_io_error(bh)) && !result) in jbd2_log_do_checkpoint() [all …]
|
/fs/ocfs2/ |
D | export.c | 57 struct dentry *result; in ocfs2_get_dentry() local 62 result = ERR_PTR(-ESTALE); in ocfs2_get_dentry() 116 result = ERR_PTR(status); in ocfs2_get_dentry() 122 result = (void *)inode; in ocfs2_get_dentry() 132 result = ERR_PTR(-ESTALE); in ocfs2_get_dentry() 136 result = d_obtain_alias(inode); in ocfs2_get_dentry() 137 if (IS_ERR(result)) in ocfs2_get_dentry() 138 mlog_errno(PTR_ERR(result)); in ocfs2_get_dentry() 141 trace_ocfs2_get_dentry_end(result); in ocfs2_get_dentry() 142 return result; in ocfs2_get_dentry()
|
/fs/ |
D | binfmt_flat.c | 430 unsigned long textpos = 0, datapos = 0, result; in load_flat_file() local 520 result = flush_old_exec(bprm); in load_flat_file() 521 if (result) { in load_flat_file() 522 ret = result; in load_flat_file() 583 result = decompress_exec(bprm, fpos, (char *) datapos, in load_flat_file() 588 result = read_code(bprm->file, datapos, fpos, in load_flat_file() 591 if (IS_ERR_VALUE(result)) { in load_flat_file() 592 printk("Unable to read data+bss, errno %d\n", (int)-result); in load_flat_file() 595 ret = result; in load_flat_file() 632 result = decompress_exec(bprm, sizeof (struct flat_hdr), in load_flat_file() [all …]
|
/fs/nfsd/ |
D | nfs4recover.c | 1078 char *result; in nfsd4_cltrack_legacy_topdir() local 1086 result = kmalloc(len, GFP_KERNEL); in nfsd4_cltrack_legacy_topdir() 1087 if (!result) in nfsd4_cltrack_legacy_topdir() 1088 return result; in nfsd4_cltrack_legacy_topdir() 1090 copied = snprintf(result, len, LEGACY_TOPDIR_ENV_PREFIX "%s", in nfsd4_cltrack_legacy_topdir() 1094 kfree(result); in nfsd4_cltrack_legacy_topdir() 1098 return result; in nfsd4_cltrack_legacy_topdir() 1106 char *result; in nfsd4_cltrack_legacy_recdir() local 1115 result = kmalloc(len, GFP_KERNEL); in nfsd4_cltrack_legacy_recdir() 1116 if (!result) in nfsd4_cltrack_legacy_recdir() [all …]
|
/fs/befs/ |
D | linuxvfs.c | 214 int result; in befs_readdir() local 223 result = befs_btree_read(sb, ds, ctx->pos, BEFS_NAME_LEN + 1, in befs_readdir() 226 if (result == BEFS_ERR) { in befs_readdir() 232 } else if (result == BEFS_BT_END) { in befs_readdir() 236 } else if (result == BEFS_BT_EMPTY) { in befs_readdir() 247 result = in befs_readdir() 249 if (result < 0) { in befs_readdir() 251 return result; in befs_readdir() 509 char *result; in befs_utf2nls() local 523 *out = result = kmalloc(maxlen, GFP_NOFS); in befs_utf2nls() [all …]
|