/fs/hpfs/ |
D | namei.c | 20 struct inode *result; in hpfs_mkdir() local 42 result = new_inode(dir->i_sb); in hpfs_mkdir() 43 if (!result) in hpfs_mkdir() 45 hpfs_init_inode(result); in hpfs_mkdir() 46 result->i_ino = fno; in hpfs_mkdir() 47 hpfs_i(result)->i_parent_dir = dir->i_ino; in hpfs_mkdir() 48 hpfs_i(result)->i_dno = dno; in hpfs_mkdir() 49 …result->i_ctime.tv_sec = result->i_mtime.tv_sec = result->i_atime.tv_sec = local_to_gmt(dir->i_sb,… in hpfs_mkdir() 50 result->i_ctime.tv_nsec = 0; in hpfs_mkdir() 51 result->i_mtime.tv_nsec = 0; in hpfs_mkdir() [all …]
|
D | dir.c | 195 struct inode *result = NULL; in hpfs_lookup() local 229 result = iget_locked(dir->i_sb, ino); in hpfs_lookup() 230 if (!result) { in hpfs_lookup() 234 if (result->i_state & I_NEW) { in hpfs_lookup() 235 hpfs_init_inode(result); in hpfs_lookup() 237 hpfs_read_inode(result); in hpfs_lookup() 239 hpfs_read_inode(result); in hpfs_lookup() 241 result->i_mode |= S_IFREG; in hpfs_lookup() 242 result->i_mode &= ~0111; in hpfs_lookup() 243 result->i_op = &hpfs_file_iops; in hpfs_lookup() [all …]
|
/fs/smbfs/ |
D | sock.c | 110 int result; in smb_get_length() local 112 result = _recvfrom(socket, header, 4, MSG_PEEK); in smb_get_length() 113 if (result == -EAGAIN) in smb_get_length() 115 if (result < 0) { in smb_get_length() 116 PARANOIA("recv error = %d\n", -result); in smb_get_length() 117 return result; in smb_get_length() 119 if (result < 4) in smb_get_length() 203 int result = 0; in smb_receive_header() local 206 result = -EIO; in smb_receive_header() 214 result = smb_get_length(sock, peek_buf); in smb_receive_header() [all …]
|
D | proc.c | 401 int result; in smb_encode_path() local 403 result = smb_build_path(server, buf, maxlen, dir, name); in smb_encode_path() 404 if (result < 0) in smb_encode_path() 407 str_upper(buf, result); in smb_encode_path() 409 return result; in smb_encode_path() 822 int result; in smb_request_ok() local 827 result = smb_add_request(req); in smb_request_ok() 828 if (result != 0) { in smb_request_ok() 838 result = smb_verify(req->rq_header, command, wct, bcc); in smb_request_ok() 841 return result; in smb_request_ok() [all …]
|
D | request.c | 149 int result = 0; in smb_setup_bcc() local 162 return result; in smb_setup_bcc() 280 int result = 0; in smb_add_request() local 288 result = smb_setup_trans2request(req); in smb_add_request() 290 if (result < 0) in smb_add_request() 291 return result; in smb_add_request() 314 result = 0; in smb_add_request() 317 result = smb_request_send_req(req); in smb_add_request() 318 if (result < 0) { in smb_add_request() 320 server->conn_error = result; in smb_add_request() [all …]
|
D | file.c | 35 int result; in smb_fsync() local 47 result = smb_proc_flush(server, SMB_I(dentry->d_inode)->fileid); in smb_fsync() 48 return result; in smb_fsync() 62 int result; in smb_readpage_sync() local 67 result = smb_open(dentry, SMB_O_RDONLY); in smb_readpage_sync() 68 if (result < 0) in smb_readpage_sync() 75 result = server->ops->read(dentry->d_inode,offset,rsize,buffer); in smb_readpage_sync() 76 if (result < 0) in smb_readpage_sync() 79 count -= result; in smb_readpage_sync() 80 offset += result; in smb_readpage_sync() [all …]
|
D | ioctl.c | 31 int result = -EINVAL; in smb_ioctl() local 38 result = put_user(uid16, (uid16_t __user *) arg); in smb_ioctl() 42 result = put_user(uid32, (uid_t __user *) arg); in smb_ioctl() 48 result = 0; in smb_ioctl() 58 result = -EFAULT; in smb_ioctl() 60 result = smb_newconn(server, &opt); in smb_ioctl() 66 return result; in smb_ioctl()
|
D | inode.c | 118 struct inode *result; in smb_iget() local 122 result = new_inode(sb); in smb_iget() 123 if (!result) in smb_iget() 124 return result; in smb_iget() 125 result->i_ino = fattr->f_ino; in smb_iget() 126 SMB_I(result)->open = 0; in smb_iget() 127 SMB_I(result)->fileid = 0; in smb_iget() 128 SMB_I(result)->access = 0; in smb_iget() 129 SMB_I(result)->flags = 0; in smb_iget() 130 SMB_I(result)->closed = 0; in smb_iget() [all …]
|
D | smbiod.c | 155 int result = 0; in smbiod_retry() local 224 result = kill_pid(pid, SIGUSR1, 1); in smbiod_retry() 225 if (result) { in smbiod_retry() 227 printk(KERN_ERR "smb_retry: signal failed [%d]\n", result); in smbiod_retry() 236 return result; in smbiod_retry() 253 int result; in smbiod_doio() local 260 result = smb_request_recv(server); in smbiod_doio() 261 if (result < 0) { in smbiod_doio() 267 } while (result > 0 && maxwork-- > 0); in smbiod_doio() 278 result = smb_request_send_server(server); in smbiod_doio() [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 | 62 int result; member 132 …nline void ncp_finish_request(struct ncp_server *server, struct ncp_request_reply *req, int result) in ncp_finish_request() argument 134 req->result = result; in ncp_finish_request() 218 int result; in __ncptcp_try_send() local 226 result = do_send(server->ncp_sock, iovc, rq->tx_iovlen, in __ncptcp_try_send() 229 if (result == -EAGAIN) in __ncptcp_try_send() 232 if (result < 0) { in __ncptcp_try_send() 233 printk(KERN_ERR "ncpfs: tcp: Send failed: %d\n", result); in __ncptcp_try_send() 234 __ncp_abort_request(server, rq, result); in __ncptcp_try_send() 237 if (result >= rq->tx_totallen) { in __ncptcp_try_send() [all …]
|
D | ioctl.c | 269 int result; in __ncp_ioctl() local 318 result = ncp_request2(server, request.function, in __ncp_ioctl() 320 if (result < 0) in __ncp_ioctl() 321 result = -EIO; in __ncp_ioctl() 323 result = server->reply_size; in __ncp_ioctl() 326 result); in __ncp_ioctl() 327 if (result >= 0) in __ncp_ioctl() 328 if (copy_to_user(request.data, bouncebuffer, result)) in __ncp_ioctl() 329 result = -EFAULT; in __ncp_ioctl() 331 return result; in __ncp_ioctl() [all …]
|
/fs/exportfs/ |
D | expfs.c | 41 find_acceptable_alias(struct dentry *result, in find_acceptable_alias() argument 47 if (acceptable(context, result)) in find_acceptable_alias() 48 return result; in find_acceptable_alias() 51 list_for_each_entry(dentry, &result->d_inode->i_dentry, d_alias) { in find_acceptable_alias() 56 if (dentry != result && acceptable(context, dentry)) { in find_acceptable_alias() 57 dput(result); in find_acceptable_alias() 229 int result = 0; in filldir_one() local 236 result = -1; in filldir_one() 238 return result; in filldir_one() 364 struct dentry *result, *alias; in exportfs_decode_fh() local [all …]
|
/fs/dlm/ |
D | lowcomms.c | 652 int result; in tcp_accept_from_sock() local 661 result = sock_create_kern(dlm_local_addr[0]->ss_family, SOCK_STREAM, in tcp_accept_from_sock() 663 if (result < 0) in tcp_accept_from_sock() 668 result = -ENOTCONN; in tcp_accept_from_sock() 675 result = con->sock->ops->accept(con->sock, newsock, O_NONBLOCK); in tcp_accept_from_sock() 676 if (result < 0) in tcp_accept_from_sock() 683 result = -ECONNABORTED; in tcp_accept_from_sock() 705 result = -ENOMEM; in tcp_accept_from_sock() 717 result = -ENOMEM; in tcp_accept_from_sock() 736 result = -EAGAIN; in tcp_accept_from_sock() [all …]
|
/fs/nfs/ |
D | direct.c | 190 ssize_t result = -EIOCBQUEUED; in nfs_direct_wait() local 196 result = wait_for_completion_killable(&dreq->completion); in nfs_direct_wait() 198 if (!result) in nfs_direct_wait() 199 result = dreq->error; in nfs_direct_wait() 200 if (!result) in nfs_direct_wait() 201 result = dreq->count; in nfs_direct_wait() 204 return (ssize_t) result; in nfs_direct_wait() 294 int result; in nfs_direct_read_schedule_segment() local 304 result = -ENOMEM; in nfs_direct_read_schedule_segment() 310 result = get_user_pages(current, current->mm, user_addr, in nfs_direct_read_schedule_segment() [all …]
|
/fs/xfs/ |
D | xfs_bit.c | 54 uint result = 0; in xfs_contig_bits() local 68 result += NBWORD; in xfs_contig_bits() 74 result += NBWORD; in xfs_contig_bits() 77 return result - start_bit; in xfs_contig_bits() 79 return result + ffz(tmp) - start_bit; in xfs_contig_bits() 93 uint result = start_bit & ~(NBWORD - 1); in xfs_next_bit() local 100 size -= result; in xfs_next_bit() 108 result += NBWORD; in xfs_next_bit() 114 result += NBWORD; in xfs_next_bit() 119 return result + ffs(tmp) - 1; in xfs_next_bit()
|
/fs/ufs/ |
D | balloc.c | 362 u64 tmp, request, result; in ufs_new_fragments() local 431 result = ufs_alloc_fragments (inode, cgno, goal, count, err); in ufs_new_fragments() 432 if (result) { in ufs_new_fragments() 433 ufs_cpu_to_data_ptr(sb, p, result); in ufs_new_fragments() 438 ufs_clear_frags(inode, result + oldcount, in ufs_new_fragments() 442 UFSD("EXIT, result %llu\n", (unsigned long long)result); in ufs_new_fragments() 443 return result; in ufs_new_fragments() 449 result = ufs_add_fragments (inode, tmp, oldcount, newcount, err); in ufs_new_fragments() 450 if (result) { in ufs_new_fragments() 453 ufs_clear_frags(inode, result + oldcount, newcount - oldcount, in ufs_new_fragments() [all …]
|
/fs/adfs/ |
D | map.c | 203 int result; in scan_map() local 210 result = lookup_zone(dm, idlen, frag_id, &mapoff); in scan_map() 212 if (result != -1) in scan_map() 222 result -= dm->dm_startbit; in scan_map() 223 result += dm->dm_startblk; in scan_map() 225 return result; in scan_map() 259 int result; in adfs_map_lookup() local 277 result = scan_map(asb, zone, frag_id, mapoff); in adfs_map_lookup() 280 if (result > 0) { in adfs_map_lookup() 285 return secoff + signed_asl(result, asb->s_map2blk); in adfs_map_lookup()
|
/fs/yaffs2/ |
D | yaffs_nand.c | 27 int result; in yaffs_ReadChunkWithTagsFromNAND() local 39 result = dev->readChunkWithTagsFromNAND(dev, realignedChunkInNAND, buffer, in yaffs_ReadChunkWithTagsFromNAND() 42 result = yaffs_TagsCompatabilityReadChunkWithTagsFromNAND(dev, in yaffs_ReadChunkWithTagsFromNAND() 53 return result; in yaffs_ReadChunkWithTagsFromNAND() 123 int result; in yaffs_EraseBlockInNAND() local 129 result = dev->eraseBlockInNAND(dev, blockInNAND); in yaffs_EraseBlockInNAND() 131 return result; in yaffs_EraseBlockInNAND()
|
/fs/partitions/ |
D | ldm.c | 331 bool result = false; in ldm_validate_privheads() local 355 result = ldm_parse_privhead (data, ph[i]); in ldm_validate_privheads() 357 if (!result) { in ldm_validate_privheads() 391 result = true; in ldm_validate_privheads() 395 return result; in ldm_validate_privheads() 421 bool result = false; in ldm_validate_tocblocks() local 468 result = true; in ldm_validate_tocblocks() 471 return result; in ldm_validate_tocblocks() 491 bool result = false; in ldm_validate_vmdb() local 528 result = true; in ldm_validate_vmdb() [all …]
|
/fs/udf/ |
D | file.c | 150 int result = -EINVAL; in udf_ioctl() local 175 result = udf_relocate_blocks(inode->i_sb, in udf_ioctl() 177 if (result == 0) in udf_ioctl() 178 result = put_user(new_block, (long __user *)arg); in udf_ioctl() 179 return result; in udf_ioctl() 181 result = put_user(UDF_I(inode)->i_lenEAttr, (int __user *)arg); in udf_ioctl() 184 result = copy_to_user((char __user *)arg, in udf_ioctl() 190 return result; in udf_ioctl()
|
/fs/jbd2/ |
D | checkpoint.c | 351 int result; in jbd2_log_do_checkpoint() local 360 result = jbd2_cleanup_journal_tail(journal); in jbd2_log_do_checkpoint() 362 journal->j_devname, result); in jbd2_log_do_checkpoint() 363 jbd_debug(1, "cleanup_journal_tail returned %d\n", result); in jbd2_log_do_checkpoint() 364 if (result <= 0) in jbd2_log_do_checkpoint() 365 return result; in jbd2_log_do_checkpoint() 371 result = 0; in jbd2_log_do_checkpoint() 403 if (retry < 0 && !result) in jbd2_log_do_checkpoint() 404 result = retry; in jbd2_log_do_checkpoint() 430 if (!result) in jbd2_log_do_checkpoint() [all …]
|
/fs/jbd/ |
D | checkpoint.c | 349 int result; in log_do_checkpoint() local 358 result = cleanup_journal_tail(journal); in log_do_checkpoint() 359 jbd_debug(1, "cleanup_journal_tail returned %d\n", result); in log_do_checkpoint() 360 if (result <= 0) in log_do_checkpoint() 361 return result; in log_do_checkpoint() 367 result = 0; in log_do_checkpoint() 397 if (retry < 0 && !result) in log_do_checkpoint() 398 result = retry; in log_do_checkpoint() 424 if (!result) in log_do_checkpoint() 425 result = err; in log_do_checkpoint() [all …]
|
/fs/befs/ |
D | linuxvfs.c | 220 int result; in befs_readdir() local 232 result = befs_btree_read(sb, ds, filp->f_pos, BEFS_NAME_LEN + 1, in befs_readdir() 235 if (result == BEFS_ERR) { in befs_readdir() 241 } else if (result == BEFS_BT_END) { in befs_readdir() 245 } else if (result == BEFS_BT_EMPTY) { in befs_readdir() 254 result = in befs_readdir() 256 if (result < 0) { in befs_readdir() 258 return result; in befs_readdir() 260 result = filldir(dirent, nlsname, nlsnamelen, filp->f_pos, in befs_readdir() 265 result = filldir(dirent, keybuf, keysize, filp->f_pos, in befs_readdir() [all …]
|
/fs/ |
D | binfmt_flat.c | 417 unsigned long textpos = 0, datapos = 0, result; in load_flat_file() local 505 result = flush_old_exec(bprm); in load_flat_file() 506 if (result) { in load_flat_file() 507 ret = result; in load_flat_file() 569 result = decompress_exec(bprm, fpos, (char *) datapos, in load_flat_file() 574 result = bprm->file->f_op->read(bprm->file, (char *) datapos, in load_flat_file() 577 if (result >= (unsigned long)-4096) { in load_flat_file() 578 printk("Unable to read data+bss, errno %d\n", (int)-result); in load_flat_file() 581 ret = result; in load_flat_file() 617 result = decompress_exec(bprm, sizeof (struct flat_hdr), in load_flat_file() [all …]
|