Home
last modified time | relevance | path

Searched refs:result (Results 1 – 25 of 119) sorted by relevance

12345

/fs/hpfs/
Dnamei.c32 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()
61result->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 …]
Ddir.c211 struct inode *result = NULL; in hpfs_lookup() local
245 result = iget_locked(dir->i_sb, ino); in hpfs_lookup()
246 if (!result) { 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()
259 result->i_op = &hpfs_file_iops; in hpfs_lookup()
[all …]
/fs/ncpfs/
Dncplib_kernel.c156 int result; in ncp_negotiate_buffersize() local
161 if ((result = ncp_request(server, 33)) != 0) { in ncp_negotiate_buffersize()
163 return result; in ncp_negotiate_buffersize()
179 int result; in ncp_negotiate_size_and_options() local
188 if ((result = ncp_request(server, 0x61)) != 0) in ncp_negotiate_size_and_options()
191 return result; in ncp_negotiate_size_and_options()
195 result = ncp_reply_be16(server, 0); in ncp_negotiate_size_and_options()
196 if (result >= NCP_BLOCK_SIZE) in ncp_negotiate_size_and_options()
197 size = min(result, size); in ncp_negotiate_size_and_options()
207 int result; in ncp_get_volume_info_with_number() local
[all …]
Dsock.c59 int result; member
127 …nline void ncp_finish_request(struct ncp_server *server, struct ncp_request_reply *req, int result) in ncp_finish_request() argument
129 req->result = result; in ncp_finish_request()
209 int result; in __ncptcp_try_send() local
216 result = sock_sendmsg(server->ncp_sock, &msg); in __ncptcp_try_send()
218 if (result == -EAGAIN) in __ncptcp_try_send()
221 if (result < 0) { in __ncptcp_try_send()
222 pr_err("tcp: Send failed: %d\n", result); in __ncptcp_try_send()
223 __ncp_abort_request(server, rq, result); in __ncptcp_try_send()
367 int result; in ncpdgram_rcv_proc() local
[all …]
Dioctl.c262 int result; in __ncp_ioctl() local
306 result = ncp_request2(server, request.function, in __ncp_ioctl()
308 if (result < 0) in __ncp_ioctl()
309 result = -EIO; in __ncp_ioctl()
311 result = server->reply_size; in __ncp_ioctl()
313 ncp_dbg(1, "copy %d bytes\n", result); in __ncp_ioctl()
314 if (result >= 0) in __ncp_ioctl()
315 if (copy_to_user(request.data, bouncebuffer, result)) in __ncp_ioctl()
316 result = -EFAULT; in __ncp_ioctl()
318 return result; in __ncp_ioctl()
[all …]
Ddir.c426 int result, mtime_valid = 0; in ncp_readdir() local
434 result = -EIO; in ncp_readdir()
439 result = 0; in ncp_readdir()
567 return result; in ncp_readdir()
788 int result; in ncp_conn_logged_in() local
799 result = ncp_io2vol(server, __name, &len, server->m.mounted_vol, in ncp_conn_logged_in()
801 if (result) in ncp_conn_logged_in()
803 result = -ENOENT; in ncp_conn_logged_in()
816 result = 0; in ncp_conn_logged_in()
824 result = 0; in ncp_conn_logged_in()
[all …]
Dfile.c52 int result; in ncp_make_open() local
56 result = ncp_open_create_file_or_subdir(NCP_SERVER(inode), in ncp_make_open()
59 if (!result) in ncp_make_open()
65 result = ncp_open_create_file_or_subdir(NCP_SERVER(inode), in ncp_make_open()
71 result = ncp_open_create_file_or_subdir(NCP_SERVER(inode), in ncp_make_open()
76 if (result) { in ncp_make_open()
77 ncp_vdbg("failed, result=%d\n", result); in ncp_make_open()
/fs/nfs/
Dnfs3xdr.c1423 void *result) in nfs3_xdr_dec_getattr3res() argument
1433 error = decode_fattr3(xdr, result); in nfs3_xdr_dec_getattr3res()
1460 void *result) in nfs3_xdr_dec_setattr3res() argument
1468 error = decode_wcc_data(xdr, result); in nfs3_xdr_dec_setattr3res()
1503 struct nfs3_diropres *result = data; in nfs3_xdr_dec_lookup3res() local
1512 error = decode_nfs_fh3(xdr, result->fh); in nfs3_xdr_dec_lookup3res()
1515 error = decode_post_op_attr(xdr, result->fattr); in nfs3_xdr_dec_lookup3res()
1518 error = decode_post_op_attr(xdr, result->dir_attr); in nfs3_xdr_dec_lookup3res()
1522 error = decode_post_op_attr(xdr, result->dir_attr); in nfs3_xdr_dec_lookup3res()
1551 struct nfs3_accessres *result = data; in nfs3_xdr_dec_access3res() local
[all …]
Ddirect.c372 ssize_t result = -EIOCBQUEUED; in nfs_direct_wait() local
378 result = wait_for_completion_killable(&dreq->completion); in nfs_direct_wait()
380 if (!result) { in nfs_direct_wait()
381 result = dreq->count; in nfs_direct_wait()
384 if (!result) in nfs_direct_wait()
385 result = dreq->error; in nfs_direct_wait()
388 return (ssize_t) result; in nfs_direct_wait()
482 ssize_t result = -EINVAL; in nfs_direct_read_schedule_iovec() local
498 result = iov_iter_get_pages_alloc(iter, &pagevec, in nfs_direct_read_schedule_iovec()
500 if (result < 0) in nfs_direct_read_schedule_iovec()
[all …]
Dfile.c157 ssize_t result; in nfs_file_read() local
167 result = nfs_revalidate_mapping(inode, iocb->ki_filp->f_mapping); in nfs_file_read()
168 if (!result) { in nfs_file_read()
169 result = generic_file_read_iter(iocb, to); in nfs_file_read()
170 if (result > 0) in nfs_file_read()
171 nfs_add_stats(inode, NFSIOS_NORMALREADBYTES, result); in nfs_file_read()
174 return result; in nfs_file_read()
602 ssize_t result; in nfs_file_write() local
604 result = nfs_key_timeout_notify(file, inode); in nfs_file_write()
605 if (result) in nfs_file_write()
[all …]
Dnfs2xdr.c107 static int decode_nfsdata(struct xdr_stream *xdr, struct nfs_pgio_res *result) in decode_nfsdata() argument
120 result->eof = 0; /* NFSv2 does not pass EOF flag on the wire. */ in decode_nfsdata()
121 result->count = count; in decode_nfsdata()
485 static int decode_attrstat(struct xdr_stream *xdr, struct nfs_fattr *result, in decode_attrstat() argument
498 error = decode_fattr(xdr, result); in decode_attrstat()
533 static int decode_diropok(struct xdr_stream *xdr, struct nfs_diropok *result) in decode_diropok() argument
537 error = decode_fhandle(xdr, result->fh); in decode_diropok()
540 error = decode_fattr(xdr, result->fattr); in decode_diropok()
545 static int decode_diropres(struct xdr_stream *xdr, struct nfs_diropok *result) in decode_diropres() argument
555 error = decode_diropok(xdr, result); in decode_diropres()
[all …]
Dnfs3acl.c297 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/dlm/
Dlowcomms.c716 int result; in tcp_accept_from_sock() local
732 result = sock_create_lite(dlm_local_addr[0]->ss_family, in tcp_accept_from_sock()
734 if (result < 0) in tcp_accept_from_sock()
739 result = -ENOTCONN; in tcp_accept_from_sock()
746 result = con->sock->ops->accept(con->sock, newsock, O_NONBLOCK, true); in tcp_accept_from_sock()
747 if (result < 0) in tcp_accept_from_sock()
754 result = -ECONNABORTED; in tcp_accept_from_sock()
779 result = -ENOMEM; in tcp_accept_from_sock()
791 result = -ENOMEM; in tcp_accept_from_sock()
810 result = -EAGAIN; in tcp_accept_from_sock()
[all …]
/fs/exportfs/
Dexpfs.c42 find_acceptable_alias(struct dentry *result, in find_acceptable_alias() argument
49 if (acceptable(context, result)) in find_acceptable_alias()
50 return result; in find_acceptable_alias()
52 inode = result->d_inode; in find_acceptable_alias()
59 if (dentry != result && acceptable(context, dentry)) { in find_acceptable_alias()
60 dput(result); in find_acceptable_alias()
255 int result = 0; in filldir_one() local
262 result = -1; in filldir_one()
264 return result; in filldir_one()
424 struct dentry *result, *alias; in exportfs_decode_fh() local
[all …]
/fs/ufs/
Dballoc.c352 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/
Dxfs_bit.c52 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/
Dclntxdr.c248 const struct nlm_res *result) in encode_nlm_holder() argument
250 const struct nlm_lock *lock = &result->lock; in encode_nlm_holder()
264 static int decode_nlm_holder(struct xdr_stream *xdr, struct nlm_res *result) in decode_nlm_holder() argument
266 struct nlm_lock *lock = &result->lock; in decode_nlm_holder()
451 const struct nlm_res *result = data; in nlm_xdr_enc_res() local
453 encode_cookie(xdr, &result->cookie); in nlm_xdr_enc_res()
454 encode_nlm_stat(xdr, result->status); in nlm_xdr_enc_res()
471 const struct nlm_res *result) in encode_nlm_testrply() argument
473 if (result->status == nlm_lck_denied) in encode_nlm_testrply()
474 encode_nlm_holder(xdr, result); in encode_nlm_testrply()
[all …]
Dclnt4xdr.c253 const struct nlm_res *result) in encode_nlm4_holder() argument
255 const struct nlm_lock *lock = &result->lock; in encode_nlm4_holder()
269 static int decode_nlm4_holder(struct xdr_stream *xdr, struct nlm_res *result) in decode_nlm4_holder() argument
271 struct nlm_lock *lock = &result->lock; in decode_nlm4_holder()
458 const struct nlm_res *result = data; in nlm4_xdr_enc_res() local
460 encode_cookie(xdr, &result->cookie); in nlm4_xdr_enc_res()
461 encode_nlm4_stat(xdr, result->status); in nlm4_xdr_enc_res()
481 const struct nlm_res *result = data; in nlm4_xdr_enc_testres() local
483 encode_cookie(xdr, &result->cookie); in nlm4_xdr_enc_testres()
484 encode_nlm4_stat(xdr, result->status); in nlm4_xdr_enc_testres()
[all …]
/fs/adfs/
Dmap.c197 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/
Dcheckpoint.c214 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/
Dexport.c57 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 = ERR_CAST(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/
Dbinfmt_flat.c423 ssize_t result; in load_flat_file() local
574 result = decompress_exec(bprm, fpos, (char *)datapos, in load_flat_file()
579 result = read_code(bprm->file, datapos, fpos, in load_flat_file()
582 if (IS_ERR_VALUE(result)) { in load_flat_file()
583 ret = result; in load_flat_file()
625 result = decompress_exec(bprm, sizeof(struct flat_hdr), in load_flat_file()
641 result = -ENOMEM; in load_flat_file()
643 result = decompress_exec(bprm, sizeof(struct flat_hdr), in load_flat_file()
645 if (result == 0 && in load_flat_file()
650 result = -EFAULT; in load_flat_file()
[all …]
Dreaddir.c123 int result; member
134 if (buf->result) in fillonedir()
138 buf->result = -EOVERFLOW; in fillonedir()
141 buf->result++; in fillonedir()
155 buf->result = -EFAULT; in fillonedir()
173 if (buf.result) in SYSCALL_DEFINE3()
174 error = buf.result; in SYSCALL_DEFINE3()
381 int result; member
393 if (buf->result) in compat_fillonedir()
397 buf->result = -EOVERFLOW; in compat_fillonedir()
[all …]
/fs/nfsd/
Dnfs4recover.c1084 char *result; in nfsd4_cltrack_legacy_topdir() local
1092 result = kmalloc(len, GFP_KERNEL); in nfsd4_cltrack_legacy_topdir()
1093 if (!result) in nfsd4_cltrack_legacy_topdir()
1094 return result; in nfsd4_cltrack_legacy_topdir()
1096 copied = snprintf(result, len, LEGACY_TOPDIR_ENV_PREFIX "%s", in nfsd4_cltrack_legacy_topdir()
1100 kfree(result); in nfsd4_cltrack_legacy_topdir()
1104 return result; in nfsd4_cltrack_legacy_topdir()
1112 char *result; in nfsd4_cltrack_legacy_recdir() local
1121 result = kmalloc(len, GFP_KERNEL); in nfsd4_cltrack_legacy_recdir()
1122 if (!result) in nfsd4_cltrack_legacy_recdir()
[all …]
/fs/befs/
Dlinuxvfs.c227 int result; in befs_readdir() local
235 result = befs_btree_read(sb, ds, ctx->pos, BEFS_NAME_LEN + 1, in befs_readdir()
238 if (result == BEFS_ERR) { in befs_readdir()
244 } else if (result == BEFS_BT_END) { in befs_readdir()
248 } else if (result == BEFS_BT_EMPTY) { in befs_readdir()
258 result = in befs_readdir()
261 if (result < 0) { in befs_readdir()
263 return result; in befs_readdir()
520 char *result; in befs_utf2nls() local
534 *out = result = kmalloc(maxlen, GFP_NOFS); in befs_utf2nls()
[all …]

12345