Home
last modified time | relevance | path

Searched refs:args (Results 1 – 25 of 193) sorted by relevance

12345678

/fs/xfs/libxfs/
Dxfs_attr.c41 STATIC int xfs_attr_shortform_addname(xfs_da_args_t *args);
46 STATIC int xfs_attr_leaf_get(xfs_da_args_t *args);
47 STATIC int xfs_attr_leaf_addname(xfs_da_args_t *args);
48 STATIC int xfs_attr_leaf_removename(xfs_da_args_t *args);
53 STATIC int xfs_attr_node_get(xfs_da_args_t *args);
54 STATIC int xfs_attr_node_addname(xfs_da_args_t *args);
55 STATIC int xfs_attr_node_removename(xfs_da_args_t *args);
62 struct xfs_da_args *args, in xfs_attr_args_init() argument
71 memset(args, 0, sizeof(*args)); in xfs_attr_args_init()
72 args->geo = dp->i_mount->m_attr_geo; in xfs_attr_args_init()
[all …]
Dxfs_dir2.c70 struct xfs_da_args *args, in xfs_ascii_ci_compname() argument
77 if (args->namelen != len) in xfs_ascii_ci_compname()
82 if (args->name[i] == name[i]) in xfs_ascii_ci_compname()
84 if (tolower(args->name[i]) != tolower(name[i])) in xfs_ascii_ci_compname()
212 struct xfs_da_args *args; in xfs_dir_init() local
220 args = kmem_zalloc(sizeof(*args), KM_NOFS); in xfs_dir_init()
221 if (!args) in xfs_dir_init()
224 args->geo = dp->i_mount->m_dir_geo; in xfs_dir_init()
225 args->dp = dp; in xfs_dir_init()
226 args->trans = tp; in xfs_dir_init()
[all …]
Dxfs_alloc.c254 xfs_alloc_arg_t *args, /* allocation argument structure */ in xfs_alloc_compute_aligned() argument
267 busy = xfs_extent_busy_trim(args, &bno, &len, busy_gen); in xfs_alloc_compute_aligned()
273 if (bno < args->min_agbno && bno + len > args->min_agbno) { in xfs_alloc_compute_aligned()
274 diff = args->min_agbno - bno; in xfs_alloc_compute_aligned()
281 if (args->alignment > 1 && len >= args->minlen) { in xfs_alloc_compute_aligned()
282 xfs_agblock_t aligned_bno = roundup(bno, args->alignment); in xfs_alloc_compute_aligned()
373 xfs_alloc_arg_t *args) /* allocation argument structure */ in xfs_alloc_fix_len() argument
378 ASSERT(args->mod < args->prod); in xfs_alloc_fix_len()
379 rlen = args->len; in xfs_alloc_fix_len()
380 ASSERT(rlen >= args->minlen); in xfs_alloc_fix_len()
[all …]
Dxfs_attr_leaf.c45 STATIC int xfs_attr3_leaf_create(struct xfs_da_args *args,
49 struct xfs_da_args *args, int freemap_index);
50 STATIC void xfs_attr3_leaf_compact(struct xfs_da_args *args,
67 STATIC void xfs_attr3_leaf_moveents(struct xfs_da_args *args,
398 struct xfs_da_args *args, in xfs_attr_copy_value() argument
405 if (args->flags & ATTR_KERNOVAL) { in xfs_attr_copy_value()
406 args->valuelen = valuelen; in xfs_attr_copy_value()
413 if (args->valuelen < valuelen) { in xfs_attr_copy_value()
414 args->valuelen = valuelen; in xfs_attr_copy_value()
418 if (args->op_flags & XFS_DA_OP_ALLOCVAL) { in xfs_attr_copy_value()
[all …]
Dxfs_dir2_leaf.c26 static int xfs_dir2_leaf_lookup_int(xfs_da_args_t *args, struct xfs_buf **lbpp,
28 static void xfs_dir3_leaf_log_bests(struct xfs_da_args *args,
30 static void xfs_dir3_leaf_log_tail(struct xfs_da_args *args,
298 xfs_da_args_t *args, in xfs_dir3_leaf_get_buf() argument
303 struct xfs_inode *dp = args->dp; in xfs_dir3_leaf_get_buf()
304 struct xfs_trans *tp = args->trans; in xfs_dir3_leaf_get_buf()
310 ASSERT(bno >= xfs_dir2_byte_to_db(args->geo, XFS_DIR2_LEAF_OFFSET) && in xfs_dir3_leaf_get_buf()
311 bno < xfs_dir2_byte_to_db(args->geo, XFS_DIR2_FREE_OFFSET)); in xfs_dir3_leaf_get_buf()
313 error = xfs_da_get_buf(tp, dp, xfs_dir2_db_to_da(args->geo, bno), in xfs_dir3_leaf_get_buf()
319 xfs_dir3_leaf_log_header(args, bp); in xfs_dir3_leaf_get_buf()
[all …]
Dxfs_dir2_sf.c22 static void xfs_dir2_sf_addname_easy(xfs_da_args_t *args,
26 static void xfs_dir2_sf_addname_hard(xfs_da_args_t *args, int objchange,
28 static int xfs_dir2_sf_addname_pick(xfs_da_args_t *args, int objchange,
32 static void xfs_dir2_sf_check(xfs_da_args_t *args);
34 #define xfs_dir2_sf_check(args) argument
37 static void xfs_dir2_sf_toino4(xfs_da_args_t *args);
38 static void xfs_dir2_sf_toino8(xfs_da_args_t *args);
138 xfs_da_args_t *args, /* operation arguments */ in xfs_dir2_block_to_sf() argument
156 trace_xfs_dir2_block_to_sf(args); in xfs_dir2_block_to_sf()
158 dp = args->dp; in xfs_dir2_block_to_sf()
[all …]
Dxfs_dir2_node.c27 static int xfs_dir2_leafn_add(struct xfs_buf *bp, xfs_da_args_t *args,
32 static int xfs_dir2_leafn_remove(xfs_da_args_t *args, struct xfs_buf *bp,
245 xfs_da_args_t *args, in xfs_dir3_free_get_buf() argument
249 struct xfs_trans *tp = args->trans; in xfs_dir3_free_get_buf()
250 struct xfs_inode *dp = args->dp; in xfs_dir3_free_get_buf()
256 error = xfs_da_get_buf(tp, dp, xfs_dir2_db_to_da(args->geo, fbno), in xfs_dir3_free_get_buf()
291 struct xfs_da_args *args, in xfs_dir2_free_log_bests() argument
300 bests = args->dp->d_ops->free_bests_p(free); in xfs_dir2_free_log_bests()
303 xfs_trans_log_buf(args->trans, bp, in xfs_dir2_free_log_bests()
314 struct xfs_da_args *args, in xfs_dir2_free_log_header() argument
[all …]
Dxfs_dir2_priv.h12 extern int xfs_dir2_grow_inode(struct xfs_da_args *args, int space,
14 extern int xfs_dir_cilookup_result(struct xfs_da_args *args,
21 extern int xfs_dir2_block_addname(struct xfs_da_args *args);
22 extern int xfs_dir2_block_lookup(struct xfs_da_args *args);
23 extern int xfs_dir2_block_removename(struct xfs_da_args *args);
24 extern int xfs_dir2_block_replace(struct xfs_da_args *args);
25 extern int xfs_dir2_leaf_to_block(struct xfs_da_args *args,
46 extern int xfs_dir3_data_init(struct xfs_da_args *args, xfs_dir2_db_t blkno,
54 extern int xfs_dir2_block_to_leaf(struct xfs_da_args *args,
56 extern int xfs_dir2_leaf_addname(struct xfs_da_args *args);
[all …]
Dxfs_dir2_block.c30 static int xfs_dir2_block_lookup_int(xfs_da_args_t *args, struct xfs_buf **bpp,
271 struct xfs_da_args *args, in xfs_dir2_block_compact() argument
304 xfs_dir2_data_make_free(args, bp, in xfs_dir2_block_compact()
314 xfs_dir2_data_freescan(args->dp, hdr, needlog); in xfs_dir2_block_compact()
322 xfs_da_args_t *args) /* directory op arguments */ in xfs_dir2_block_addname() argument
348 trace_xfs_dir2_block_addname(args); in xfs_dir2_block_addname()
350 dp = args->dp; in xfs_dir2_block_addname()
351 tp = args->trans; in xfs_dir2_block_addname()
358 len = dp->d_ops->data_entsize(args->namelen); in xfs_dir2_block_addname()
364 btp = xfs_dir2_block_tail_p(args->geo, hdr); in xfs_dir2_block_addname()
[all …]
Dxfs_attr_remote.c366 struct xfs_da_args *args) in xfs_attr_rmtval_get() argument
369 struct xfs_mount *mp = args->dp->i_mount; in xfs_attr_rmtval_get()
371 xfs_dablk_t lblkno = args->rmtblkno; in xfs_attr_rmtval_get()
372 uint8_t *dst = args->value; in xfs_attr_rmtval_get()
376 int blkcnt = args->rmtblkcnt; in xfs_attr_rmtval_get()
380 trace_xfs_attr_rmtval_get(args); in xfs_attr_rmtval_get()
382 ASSERT(!(args->flags & ATTR_KERNOVAL)); in xfs_attr_rmtval_get()
383 ASSERT(args->rmtvaluelen == args->valuelen); in xfs_attr_rmtval_get()
385 valuelen = args->rmtvaluelen; in xfs_attr_rmtval_get()
388 error = xfs_bmapi_read(args->dp, (xfs_fileoff_t)lblkno, in xfs_attr_rmtval_get()
[all …]
Dxfs_da_btree.c329 struct xfs_da_args *args, in xfs_da3_node_create() argument
336 struct xfs_trans *tp = args->trans; in xfs_da3_node_create()
341 struct xfs_inode *dp = args->dp; in xfs_da3_node_create()
343 trace_xfs_da_node_create(args); in xfs_da3_node_create()
359 hdr3->info.owner = cpu_to_be64(args->dp->i_ino); in xfs_da3_node_create()
391 trace_xfs_da_split(state->args); in xfs_da3_split()
433 trace_xfs_attr_leaf_split_before(state->args); in xfs_da3_split()
438 trace_xfs_attr_leaf_split_after(state->args); in xfs_da3_split()
512 xfs_trans_log_buf(state->args->trans, addblk->bp, in xfs_da3_split()
524 xfs_trans_log_buf(state->args->trans, addblk->bp, in xfs_da3_split()
[all …]
Dxfs_attr_leaf.h35 void xfs_attr_shortform_create(struct xfs_da_args *args);
36 void xfs_attr_shortform_add(struct xfs_da_args *args, int forkoff);
37 int xfs_attr_shortform_lookup(struct xfs_da_args *args);
38 int xfs_attr_shortform_getvalue(struct xfs_da_args *args);
39 int xfs_attr_shortform_to_leaf(struct xfs_da_args *args,
41 int xfs_attr_shortform_remove(struct xfs_da_args *args);
50 int xfs_attr3_leaf_to_node(struct xfs_da_args *args);
52 struct xfs_da_args *args, int forkoff);
53 int xfs_attr3_leaf_clearflag(struct xfs_da_args *args);
54 int xfs_attr3_leaf_setflag(struct xfs_da_args *args);
[all …]
/fs/cachefiles/
Ddaemon.c59 int (*handler)(struct cachefiles_cache *cache, char *args);
219 char *data, *args, *cp; in cachefiles_daemon_write() local
252 for (args = data; *args; args++) in cachefiles_daemon_write()
253 if (isspace(*args)) in cachefiles_daemon_write()
255 if (*args) { in cachefiles_daemon_write()
256 if (args == data) in cachefiles_daemon_write()
258 *args = '\0'; in cachefiles_daemon_write()
259 args = skip_spaces(++args); in cachefiles_daemon_write()
277 ret = cmd->handler(cache, args); in cachefiles_daemon_write()
313 char *args) in cachefiles_daemon_range_error() argument
[all …]
/fs/fuse/
Dxattr.c18 FUSE_ARGS(args); in fuse_setxattr()
28 args.opcode = FUSE_SETXATTR; in fuse_setxattr()
29 args.nodeid = get_node_id(inode); in fuse_setxattr()
30 args.in_numargs = 3; in fuse_setxattr()
31 args.in_args[0].size = sizeof(inarg); in fuse_setxattr()
32 args.in_args[0].value = &inarg; in fuse_setxattr()
33 args.in_args[1].size = strlen(name) + 1; in fuse_setxattr()
34 args.in_args[1].value = name; in fuse_setxattr()
35 args.in_args[2].size = size; in fuse_setxattr()
36 args.in_args[2].value = value; in fuse_setxattr()
[all …]
Ddir.c171 static void fuse_lookup_init(struct fuse_conn *fc, struct fuse_args *args, in fuse_lookup_init() argument
176 args->opcode = FUSE_LOOKUP; in fuse_lookup_init()
177 args->nodeid = nodeid; in fuse_lookup_init()
178 args->in_numargs = 1; in fuse_lookup_init()
179 args->in_args[0].size = name->len + 1; in fuse_lookup_init()
180 args->in_args[0].value = name->name; in fuse_lookup_init()
181 args->out_numargs = 1; in fuse_lookup_init()
182 args->out_args[0].size = sizeof(struct fuse_entry_out); in fuse_lookup_init()
183 args->out_args[0].value = outarg; in fuse_lookup_init()
209 FUSE_ARGS(args); in fuse_dentry_revalidate()
[all …]
/fs/nfs/
Dcallback_proc.c26 struct cb_getattrargs *args = argp; in nfs4_callback_getattr() local
42 inode = nfs_delegation_find_inode(cps->clp, &args->fh); in nfs4_callback_getattr()
46 trace_nfs4_cb_getattr(cps->clp, &args->fh, NULL, in nfs4_callback_getattr()
62 args->bitmap[0]; in nfs4_callback_getattr()
64 args->bitmap[1]; in nfs4_callback_getattr()
68 trace_nfs4_cb_getattr(cps->clp, &args->fh, inode, -ntohl(res->status)); in nfs4_callback_getattr()
78 struct cb_recallargs *args = argp; in nfs4_callback_recall() local
90 inode = nfs_delegation_find_inode(cps->clp, &args->fh); in nfs4_callback_recall()
94 trace_nfs4_cb_recall(cps->clp, &args->fh, NULL, in nfs4_callback_recall()
95 &args->stateid, -ntohl(res)); in nfs4_callback_recall()
[all …]
Dnfs42xdr.c154 const struct nfs42_falloc_args *args) in encode_fallocate() argument
156 encode_nfs4_stateid(xdr, &args->falloc_stateid); in encode_fallocate()
157 encode_uint64(xdr, args->falloc_offset); in encode_fallocate()
158 encode_uint64(xdr, args->falloc_length); in encode_fallocate()
162 const struct nfs42_falloc_args *args, in encode_allocate() argument
166 encode_fallocate(xdr, args); in encode_allocate()
170 const struct nfs42_copy_args *args, in encode_copy() argument
174 encode_nfs4_stateid(xdr, &args->src_stateid); in encode_copy()
175 encode_nfs4_stateid(xdr, &args->dst_stateid); in encode_copy()
177 encode_uint64(xdr, args->src_pos); in encode_copy()
[all …]
Dnfs3xdr.c838 const struct nfs3_sattrargs *args) in encode_sattrguard3() argument
842 if (args->guard) { in encode_sattrguard3()
845 xdr_encode_nfstime3(p, &args->guardtime); in encode_sattrguard3()
856 const struct nfs3_sattrargs *args = data; in nfs3_xdr_enc_setattr3args() local
857 encode_nfs_fh3(xdr, args->fh); in nfs3_xdr_enc_setattr3args()
858 encode_sattr3(xdr, args->sattr, rpc_rqst_userns(req)); in nfs3_xdr_enc_setattr3args()
859 encode_sattrguard3(xdr, args); in nfs3_xdr_enc_setattr3args()
873 const struct nfs3_diropargs *args = data; in nfs3_xdr_enc_lookup3args() local
875 encode_diropargs3(xdr, args->fh, args->name, args->len); in nfs3_xdr_enc_lookup3args()
887 const struct nfs3_accessargs *args) in encode_access3args() argument
[all …]
Dcallback_xdr.c179 struct cb_getattrargs *args = argp; in decode_getattr_args() local
182 status = decode_fh(xdr, &args->fh); in decode_getattr_args()
185 return decode_bitmap(xdr, args->bitmap); in decode_getattr_args()
191 struct cb_recallargs *args = argp; in decode_recall_args() local
195 status = decode_delegation_stateid(xdr, &args->stateid); in decode_recall_args()
201 args->truncate = ntohl(*p); in decode_recall_args()
202 return decode_fh(xdr, &args->fh); in decode_recall_args()
215 struct cb_layoutrecallargs *args = argp; in decode_layoutrecall_args() local
224 args->cbl_layout_type = ntohl(*p++); in decode_layoutrecall_args()
229 args->cbl_layoutchanged = ntohl(*p++); in decode_layoutrecall_args()
[all …]
Dsuper.c336 struct nfs_parsed_mount_data *args, const char *dev_name);
1095 substring_t args[MAX_OPT_ARGS]; in nfs_parse_security_flavors() local
1102 switch (match_token(p, nfs_secflavor_tokens, args)) { in nfs_parse_security_flavors()
1151 substring_t *args) in nfs_parse_version_string() argument
1154 switch (match_token(string, nfs_vers_tokens, args)) { in nfs_parse_version_string()
1187 static int nfs_get_option_str(substring_t args[], char **option) in nfs_get_option_str() argument
1190 *option = match_strdup(args); in nfs_get_option_str()
1194 static int nfs_get_option_ul(substring_t args[], unsigned long *option) in nfs_get_option_ul() argument
1199 string = match_strdup(args); in nfs_get_option_ul()
1208 static int nfs_get_option_ul_bound(substring_t args[], unsigned long *option, in nfs_get_option_ul_bound() argument
[all …]
Dnfs2xdr.c578 const struct nfs_sattrargs *args = data; in nfs2_xdr_enc_sattrargs() local
580 encode_fhandle(xdr, args->fh); in nfs2_xdr_enc_sattrargs()
581 encode_sattr(xdr, args->sattr, rpc_rqst_userns(req)); in nfs2_xdr_enc_sattrargs()
588 const struct nfs_diropargs *args = data; in nfs2_xdr_enc_diropargs() local
590 encode_diropargs(xdr, args->fh, args->name, args->len); in nfs2_xdr_enc_diropargs()
597 const struct nfs_readlinkargs *args = data; in nfs2_xdr_enc_readlinkargs() local
599 encode_fhandle(xdr, args->fh); in nfs2_xdr_enc_readlinkargs()
600 rpc_prepare_reply_pages(req, args->pages, args->pgbase, in nfs2_xdr_enc_readlinkargs()
601 args->pglen, NFS_readlinkres_sz); in nfs2_xdr_enc_readlinkargs()
615 const struct nfs_pgio_args *args) in encode_readargs() argument
[all …]
Dnfs3acl.c51 struct nfs3_getaclargs args = { in nfs3_get_acl() local
60 .rpc_argp = &args, in nfs3_get_acl()
79 args.mask |= NFS_ACLCNT|NFS_ACL; in nfs3_get_acl()
81 args.mask |= NFS_DFACLCNT|NFS_DFACL; in nfs3_get_acl()
82 if (args.mask == 0) in nfs3_get_acl()
91 if (args.mask & NFS_ACL) in nfs3_get_acl()
93 if (args.mask & NFS_DFACL) in nfs3_get_acl()
100 for (count = 0; count < NFSACL_MAXPAGES && args.pages[count]; count++) in nfs3_get_acl()
101 __free_page(args.pages[count]); in nfs3_get_acl()
117 if ((args.mask & res.mask) != args.mask) { in nfs3_get_acl()
[all …]
/fs/nfsd/
Dnfs3xdr.c314 struct nfsd_fhandle *args = rqstp->rq_argp; in nfs3svc_decode_fhandle() local
316 p = decode_fh(p, &args->fh); in nfs3svc_decode_fhandle()
325 struct nfsd3_sattrargs *args = rqstp->rq_argp; in nfs3svc_decode_sattrargs() local
327 p = decode_fh(p, &args->fh); in nfs3svc_decode_sattrargs()
330 p = decode_sattr3(p, &args->attrs, nfsd_user_namespace(rqstp)); in nfs3svc_decode_sattrargs()
332 if ((args->check_guard = ntohl(*p++)) != 0) { in nfs3svc_decode_sattrargs()
335 args->guardtime = time.tv_sec; in nfs3svc_decode_sattrargs()
344 struct nfsd3_diropargs *args = rqstp->rq_argp; in nfs3svc_decode_diropargs() local
346 if (!(p = decode_fh(p, &args->fh)) in nfs3svc_decode_diropargs()
347 || !(p = decode_filename(p, &args->name, &args->len))) in nfs3svc_decode_diropargs()
[all …]
Dnfsxdr.c204 struct nfsd_fhandle *args = rqstp->rq_argp; in nfssvc_decode_fhandle() local
206 p = decode_fh(p, &args->fh); in nfssvc_decode_fhandle()
215 struct nfsd_sattrargs *args = rqstp->rq_argp; in nfssvc_decode_sattrargs() local
217 p = decode_fh(p, &args->fh); in nfssvc_decode_sattrargs()
220 p = decode_sattr(p, &args->attrs, nfsd_user_namespace(rqstp)); in nfssvc_decode_sattrargs()
228 struct nfsd_diropargs *args = rqstp->rq_argp; in nfssvc_decode_diropargs() local
230 if (!(p = decode_fh(p, &args->fh)) in nfssvc_decode_diropargs()
231 || !(p = decode_filename(p, &args->name, &args->len))) in nfssvc_decode_diropargs()
240 struct nfsd_readargs *args = rqstp->rq_argp; in nfssvc_decode_readargs() local
243 p = decode_fh(p, &args->fh); in nfssvc_decode_readargs()
[all …]
/fs/
Dmpage.c192 static struct bio *do_mpage_readpage(struct mpage_readpage_args *args) in do_mpage_readpage() argument
194 struct page *page = args->page; in do_mpage_readpage()
199 struct buffer_head *map_bh = &args->map_bh; in do_mpage_readpage()
214 if (args->is_readahead) { in do_mpage_readpage()
226 last_block = block_in_file + args->nr_pages * blocks_per_page; in do_mpage_readpage()
237 block_in_file > args->first_logical_block && in do_mpage_readpage()
238 block_in_file < (args->first_logical_block + nblocks)) { in do_mpage_readpage()
239 unsigned map_offset = block_in_file - args->first_logical_block; in do_mpage_readpage()
267 if (args->get_block(inode, block_in_file, map_bh, 0)) in do_mpage_readpage()
269 args->first_logical_block = block_in_file; in do_mpage_readpage()
[all …]

12345678