Home
last modified time | relevance | path

Searched refs:actor (Results 1 – 16 of 16) sorted by relevance

/fs/squashfs/
Dpage_actor.h35 static inline void *squashfs_first_page(struct squashfs_page_actor *actor) in squashfs_first_page() argument
37 actor->next_page = 1; in squashfs_first_page()
38 return actor->pageaddr = actor->page[0] ? kmap_atomic(actor->page[0]) in squashfs_first_page()
42 static inline void *squashfs_next_page(struct squashfs_page_actor *actor) in squashfs_next_page() argument
44 if (!IS_ERR_OR_NULL(actor->pageaddr)) in squashfs_next_page()
45 kunmap_atomic(actor->pageaddr); in squashfs_next_page()
47 if (actor->next_page == actor->pages) in squashfs_next_page()
48 return actor->pageaddr = ERR_PTR(-ENODATA); in squashfs_next_page()
50 actor->pageaddr = actor->page[actor->next_page] ? in squashfs_next_page()
51 kmap_atomic(actor->page[actor->next_page]) : NULL; in squashfs_next_page()
[all …]
Dpage_actor.c18 struct squashfs_page_actor *actor = kmalloc(sizeof(*actor), GFP_KERNEL); in squashfs_page_actor_init() local
20 if (actor == NULL) in squashfs_page_actor_init()
23 actor->length = length ? : pages * PAGE_SIZE; in squashfs_page_actor_init()
24 actor->page = page; in squashfs_page_actor_init()
25 actor->pages = pages; in squashfs_page_actor_init()
26 actor->next_page = 0; in squashfs_page_actor_init()
27 actor->pageaddr = NULL; in squashfs_page_actor_init()
28 actor->release_pages = release_pages; in squashfs_page_actor_init()
29 return actor; in squashfs_page_actor_init()
32 void squashfs_page_actor_free(struct squashfs_page_actor *actor, int error) in squashfs_page_actor_free() argument
[all …]
Dfile_direct.c56 struct squashfs_page_actor *actor; in actor_from_page_cache() local
96 actor = squashfs_page_actor_init(page, actor_pages, 0, in actor_from_page_cache()
98 if (!actor) { in actor_from_page_cache()
103 return actor; in actor_from_page_cache()
113 struct squashfs_page_actor *actor; in squashfs_readpages_block() local
149 actor = actor_from_page_cache(actor_pages, target_page, in squashfs_readpages_block()
152 if (!actor) in squashfs_readpages_block()
156 actor); in squashfs_readpages_block()
Dcache.c124 &entry->next_index, entry->actor); in squashfs_cache_get()
220 kfree(cache->entry[i].actor); in squashfs_cache_delete()
273 entry->actor = squashfs_page_actor_init(entry->page, in squashfs_cache_init()
275 if (entry->actor == NULL) { in squashfs_cache_init()
412 struct squashfs_page_actor *actor; in squashfs_read_table() local
418 actor = squashfs_page_actor_init(page, pages, length, NULL); in squashfs_read_table()
419 if (actor == NULL) { in squashfs_read_table()
425 SQUASHFS_COMPRESSED_BIT_BLOCK, NULL, actor); in squashfs_read_table()
433 squashfs_actor_to_buf(actor, buff, length); in squashfs_read_table()
434 squashfs_page_actor_free(actor, 0); in squashfs_read_table()
[all …]
Ddecompressor.c100 struct squashfs_page_actor *actor = NULL; in get_comp_opts() local
114 actor = squashfs_page_actor_init(&page, 1, 0, NULL); in get_comp_opts()
115 if (actor == NULL) { in get_comp_opts()
121 sizeof(struct squashfs_super_block), 0, NULL, actor); in get_comp_opts()
133 squashfs_page_actor_free(actor, 0); in get_comp_opts()
Dblock.c108 struct squashfs_page_actor *actor = req->output; in squashfs_process_blocks() local
160 req->offset, req->length, actor); in squashfs_process_blocks()
169 if (bytes && actor->page[actor->pages - 1]) in squashfs_process_blocks()
170 zero_user_segment(actor->page[actor->pages - 1], bytes, in squashfs_process_blocks()
Dsquashfs_fs_sb.h53 struct squashfs_page_actor *actor; member
/fs/
Dreaddir.c45 res = file->f_op->readdir(file, ctx, ctx->actor); in iterate_dir()
118 .ctx.actor = fillonedir, in SYSCALL_DEFINE3()
203 .ctx.actor = filldir, in SYSCALL_DEFINE3()
283 .ctx.actor = filldir64, in SYSCALL_DEFINE3()
Dsplice.c796 splice_actor *actor) in splice_from_pipe_feed() argument
815 ret = actor(pipe, buf, sd); in splice_from_pipe_feed()
928 splice_actor *actor) in __splice_from_pipe() argument
936 ret = splice_from_pipe_feed(pipe, sd, actor); in __splice_from_pipe()
960 splice_actor *actor) in splice_from_pipe() argument
971 ret = __splice_from_pipe(pipe, &sd, actor); in splice_from_pipe()
1164 splice_direct_actor *actor) in splice_direct_to_actor() argument
1230 ret = actor(pipe, sd); in splice_direct_to_actor()
Dcompat.c878 .ctx.actor = compat_fillonedir, in compat_sys_old_readdir()
957 .ctx.actor = compat_filldir, in compat_sys_getdents()
1042 .ctx.actor = compat_filldir64, in compat_sys_getdents64()
/fs/gfs2/
Dexport.c92 .ctx.actor = get_name_filldir, in gfs2_get_name()
/fs/sdcardfs/
Dlookup.c288 .ctx.actor = sdcardfs_name_match, in __sdcardfs_lookup()
/fs/ecryptfs/
Dfile.c125 .ctx.actor = ecryptfs_filldir in ecryptfs_readdir()
/fs/exportfs/
Dexpfs.c259 .ctx.actor = filldir_one, in get_name()
/fs/nfsd/
Dnfs4recover.c272 .ctx.actor = nfsd4_build_namelist, in nfsd4_list_rec_dir()
Dvfs.c1952 .ctx.actor = nfsd_buffered_filldir, in nfsd_buffered_readdir()