Home
last modified time | relevance | path

Searched refs:context (Results 1 – 25 of 29) sorted by relevance

12

/fs/xfs/
Dxfs_attr_list.c69 xfs_attr_shortform_list(xfs_attr_list_context_t *context) in xfs_attr_shortform_list() argument
79 ASSERT(context != NULL); in xfs_attr_shortform_list()
80 dp = context->dp; in xfs_attr_shortform_list()
87 cursor = context->cursor; in xfs_attr_shortform_list()
90 trace_xfs_attr_list_sf(context); in xfs_attr_shortform_list()
101 if (context->bufsize == 0 || in xfs_attr_shortform_list()
103 (dp->i_afp->if_bytes + sf->hdr.count * 16) < context->bufsize)) { in xfs_attr_shortform_list()
105 error = context->put_listent(context, in xfs_attr_shortform_list()
117 if (context->seen_enough) in xfs_attr_shortform_list()
121 trace_xfs_attr_list_sf_all(context); in xfs_attr_shortform_list()
[all …]
Dxfs_xattr.c160 struct xfs_attr_list_context *context, in xfs_xattr_put_listent() argument
171 ASSERT(context->count >= 0); in xfs_xattr_put_listent()
180 arraytop = context->count + prefix_len + namelen + 1; in xfs_xattr_put_listent()
181 if (arraytop > context->firstu) { in xfs_xattr_put_listent()
182 context->count = -1; /* insufficient space */ in xfs_xattr_put_listent()
183 context->seen_enough = 1; in xfs_xattr_put_listent()
186 offset = (char *)context->alist + context->count; in xfs_xattr_put_listent()
192 context->count += prefix_len + namelen + 1; in xfs_xattr_put_listent()
198 struct xfs_attr_list_context *context, in xfs_xattr_put_listent_sizes() argument
205 context->count += xfs_xattr_prefix_len(flags) + namelen + 1; in xfs_xattr_put_listent_sizes()
[all …]
/fs/ocfs2/
Dmove_extents.c60 struct ocfs2_move_extents_context *context, in __ocfs2_move_extent() argument
65 struct inode *inode = context->inode; in __ocfs2_move_extent()
70 u64 ino = ocfs2_metadata_cache_owner(context->et.et_ci); in __ocfs2_move_extent()
86 path = ocfs2_new_path_from_et(&context->et); in __ocfs2_move_extent()
119 context->et.et_root_bh, in __ocfs2_move_extent()
126 ret = ocfs2_split_extent(handle, &context->et, path, index, in __ocfs2_move_extent()
127 &replace_rec, context->meta_ac, in __ocfs2_move_extent()
128 &context->dealloc); in __ocfs2_move_extent()
134 ocfs2_journal_dirty(handle, context->et.et_root_bh); in __ocfs2_move_extent()
136 context->new_phys_cpos = new_p_cpos; in __ocfs2_move_extent()
[all …]
Drefcounttree.c64 int (*get_clusters)(struct ocfs2_cow_context *context,
3114 struct ocfs2_cow_context *context, in ocfs2_replace_clusters() argument
3120 struct ocfs2_caching_info *ci = context->data_et.et_ci; in ocfs2_replace_clusters()
3128 ret = context->cow_duplicate_clusters(handle, context->inode, in ocfs2_replace_clusters()
3136 ret = ocfs2_clear_ext_refcount(handle, &context->data_et, in ocfs2_replace_clusters()
3138 context->meta_ac, &context->dealloc); in ocfs2_replace_clusters()
3195 static int ocfs2_di_get_clusters(struct ocfs2_cow_context *context, in ocfs2_di_get_clusters() argument
3200 return ocfs2_get_clusters(context->inode, v_cluster, p_cluster, in ocfs2_di_get_clusters()
3205 struct ocfs2_cow_context *context, in ocfs2_make_clusters_writable() argument
3215 struct ocfs2_caching_info *ref_ci = &context->ref_tree->rf_ci; in ocfs2_make_clusters_writable()
[all …]
/fs/exportfs/
Dexpfs.c42 int (*acceptable)(void *context, struct dentry *dentry), in find_acceptable_alias() argument
43 void *context) in find_acceptable_alias()
48 if (acceptable(context, result)) in find_acceptable_alias()
58 if (dentry != result && acceptable(context, dentry)) { in find_acceptable_alias()
415 int (*acceptable)(void *, struct dentry *), void *context) in exportfs_decode_fh() argument
448 if (!acceptable(context, result)) { in exportfs_decode_fh()
469 alias = find_acceptable_alias(result, acceptable, context); in exportfs_decode_fh()
530 alias = find_acceptable_alias(result, acceptable, context); in exportfs_decode_fh()
/fs/nfs/
Dfscache-index.c301 static void nfs_fh_get_context(void *cookie_netfs_data, void *context) in nfs_fh_get_context() argument
303 get_nfs_open_context(context); in nfs_fh_get_context()
311 static void nfs_fh_put_context(void *cookie_netfs_data, void *context) in nfs_fh_put_context() argument
313 if (context) in nfs_fh_put_context()
314 put_nfs_open_context(context); in nfs_fh_put_context()
Dfscache.c305 void *context, in nfs_readpage_from_fscache_complete() argument
310 page, context, error); in nfs_readpage_from_fscache_complete()
318 error = nfs_readpage_async(context, page->mapping->host, page); in nfs_readpage_from_fscache_complete()
Dpagelist.c541 if (hdr->args.context) in nfs_pgio_data_destroy()
542 put_nfs_open_context(hdr->args.context); in nfs_pgio_data_destroy()
582 hdr->args.context = get_nfs_open_context(req->wb_context); in nfs_pgio_rpcsetup()
Dsuper.c1986 memset(data->context, 0, sizeof(data->context)); in nfs23_validate_mount_data()
2055 if (data->context[0]){ in nfs23_validate_mount_data()
2058 char *opts_str = kmalloc(sizeof(data->context) + 8, GFP_KERNEL); in nfs23_validate_mount_data()
2062 data->context[NFS_MAX_CONTEXT_LEN] = '\0'; in nfs23_validate_mount_data()
2063 strcat(opts_str, &data->context[0]); in nfs23_validate_mount_data()
Dwrite.c1560 put_nfs_open_context(data->context); in nfs_commitdata_release()
1647 data->context = get_nfs_open_context(first->wb_context); in nfs_init_commit()
/fs/fscache/
Dpage.c276 if (op->context) in fscache_release_retrieval_op()
277 fscache_put_context(op->cookie, op->context); in fscache_release_retrieval_op()
289 void *context) in fscache_alloc_retrieval() argument
309 op->context = context; in fscache_alloc_retrieval()
316 if (context) in fscache_alloc_retrieval()
317 fscache_get_context(op->cookie, context); in fscache_alloc_retrieval()
413 void *context, in __fscache_read_or_alloc_page() argument
440 end_io_func, context); in __fscache_read_or_alloc_page()
543 void *context, in __fscache_read_or_alloc_pages() argument
570 op = fscache_alloc_retrieval(cookie, mapping, end_io_func, context); in __fscache_read_or_alloc_pages()
Dinternal.h330 void *fscache_get_context(struct fscache_cookie *cookie, void *context) in fscache_get_context() argument
333 cookie->def->get_context(cookie->netfs_data, context); in fscache_get_context()
334 return context; in fscache_get_context()
341 void fscache_put_context(struct fscache_cookie *cookie, void *context) in fscache_put_context() argument
344 cookie->def->put_context(cookie->netfs_data, context); in fscache_put_context()
/fs/xfs/libxfs/
Dxfs_attr_leaf.h53 int xfs_attr_shortform_list(struct xfs_attr_list_context *context);
82 struct xfs_attr_list_context *context);
/fs/ceph/
Dsnap.c554 capsnap->context = old_snapc; in ceph_queue_cap_snap()
608 capsnap->context, capsnap->context->seq, in __ceph_finish_cap_snap()
614 inode, capsnap, capsnap->context, in __ceph_finish_cap_snap()
615 capsnap->context->seq, ceph_cap_string(capsnap->dirty), in __ceph_finish_cap_snap()
Daddr.c94 snapc = ceph_get_snap_context(capsnap->context); in ceph_set_page_dirty()
447 capsnap->context, capsnap->dirty_pages); in get_oldest_context()
449 snapc = ceph_get_snap_context(capsnap->context); in get_oldest_context()
Dcaps.c2591 ceph_put_snap_context(capsnap->context); in ceph_try_drop_cap_snap()
2710 if (capsnap->context == snapc) { in ceph_put_wrbuffer_cap_refs()
2723 inode, capsnap, capsnap->context->seq, in ceph_put_wrbuffer_cap_refs()
3160 ceph_put_snap_context(capsnap->context); in handle_cap_flushsnap_ack()
Dsuper.h162 struct ceph_snap_context *context; member
/fs/nfs/filelayout/
Dfilelayout.c234 err = filelayout_async_handle_error(task, hdr->args.context->state, in filelayout_read_done_cb()
292 if (unlikely(test_bit(NFS_CONTEXT_BAD, &hdr->args.context->flags))) { in filelayout_read_prepare()
309 if (nfs4_set_rw_stateid(&hdr->args.stateid, hdr->args.context, in filelayout_read_prepare()
343 err = filelayout_async_handle_error(task, hdr->args.context->state, in filelayout_write_done_cb()
386 if (unlikely(test_bit(NFS_CONTEXT_BAD, &hdr->args.context->flags))) { in filelayout_write_prepare()
401 if (nfs4_set_rw_stateid(&hdr->args.stateid, hdr->args.context, in filelayout_write_prepare()
/fs/
Dbinfmt_elf_fdpic.c366 current->mm->context.exec_fdpic_loadmap = 0; in load_elf_fdpic_binary()
367 current->mm->context.interp_fdpic_loadmap = 0; in load_elf_fdpic_binary()
430 current->mm->context.end_brk = current->mm->start_brk; in load_elf_fdpic_binary()
565 current->mm->context.exec_fdpic_loadmap = (unsigned long) sp; in create_elf_fdpic_tables()
578 current->mm->context.interp_fdpic_loadmap = (unsigned long) sp; in create_elf_fdpic_tables()
1398 prstatus->pr_exec_fdpic_loadmap = p->mm->context.exec_fdpic_loadmap; in fill_prstatus()
1399 prstatus->pr_interp_fdpic_loadmap = p->mm->context.interp_fdpic_loadmap; in fill_prstatus()
Dfhandle.c133 static int vfs_dentry_acceptable(void *context, struct dentry *dentry) in vfs_dentry_acceptable() argument
Dbinfmt_flat.c684 current->mm->context.end_brk = memp + memp_size - stack_len; in load_flat_file()
891 p = ((current->mm->context.end_brk + stack_len + 3) & ~3) - 4; in load_flat_binary()
/fs/nfs/flexfilelayout/
Dflexfilelayout.c1205 err = ff_layout_async_handle_error(task, hdr->args.context->state, in ff_layout_read_done_cb()
1276 if (unlikely(test_bit(NFS_CONTEXT_BAD, &hdr->args.context->flags))) { in ff_layout_read_prepare_common()
1338 if (nfs4_set_rw_stateid(&hdr->args.stateid, hdr->args.context, in ff_layout_read_prepare_v4()
1382 err = ff_layout_async_handle_error(task, hdr->args.context->state, in ff_layout_write_done_cb()
1454 if (unlikely(test_bit(NFS_CONTEXT_BAD, &hdr->args.context->flags))) { in ff_layout_write_prepare_common()
1496 if (nfs4_set_rw_stateid(&hdr->args.stateid, hdr->args.context, in ff_layout_write_prepare_v4()
/fs/cachefiles/
Dinternal.h112 void *context; member
/fs/nfsd/
Dnfs4xdr.c2175 void *context, int len) in nfsd4_encode_security_label() argument
2189 p = xdr_encode_opaque(p, context, len); in nfsd4_encode_security_label()
2195 void *context, int len) in nfsd4_encode_security_label() argument
2291 void *context = NULL; in nfsd4_encode_fattr() local
2350 &context, &contextlen); in nfsd4_encode_fattr()
2771 status = nfsd4_encode_security_label(xdr, rqstp, context, in nfsd4_encode_fattr()
2783 if (context) in nfsd4_encode_fattr()
2784 security_release_secctx(context, contextlen); in nfsd4_encode_fattr()
/fs/jffs2/
DREADME.Locking80 to be called from bottom-half (timer) context (on the basis that nobody

12