Home
last modified time | relevance | path

Searched refs:ap (Results 1 – 23 of 23) sorted by relevance

/fs/fuse/
Dfile.c383 if (idx_from < curr_index + wpa->ia.ap.num_pages && in fuse_find_writeback()
562 struct fuse_args *args = &ia->ap.args; in fuse_read_args_fill()
578 static void fuse_release_user_pages(struct fuse_args_pages *ap, in fuse_release_user_pages() argument
583 for (i = 0; i < ap->num_pages; i++) { in fuse_release_user_pages()
585 set_page_dirty_lock(ap->pages[i]); in fuse_release_user_pages()
586 put_page(ap->pages[i]); in fuse_release_user_pages()
664 ia->ap.pages = fuse_pages_alloc(npages, GFP_KERNEL, in fuse_io_alloc()
665 &ia->ap.descs); in fuse_io_alloc()
666 if (!ia->ap.pages) { in fuse_io_alloc()
676 kfree(ia->ap.pages); in fuse_io_free()
[all …]
Dcuse.c302 struct fuse_args_pages ap; member
319 struct cuse_init_args *ia = container_of(args, typeof(*ia), ap.args); in cuse_process_init_reply()
320 struct fuse_args_pages *ap = &ia->ap; in cuse_process_init_reply() local
323 struct page *page = ap->pages[0]; in cuse_process_init_reply()
340 rc = cuse_parse_devinfo(page_address(page), ap->args.out_args[1].size, in cuse_process_init_reply()
429 struct fuse_args_pages *ap; in cuse_send_init() local
442 ap = &ia->ap; in cuse_send_init()
446 ap->args.opcode = CUSE_INIT; in cuse_send_init()
447 ap->args.in_numargs = 1; in cuse_send_init()
448 ap->args.in_args[0].size = sizeof(ia->in); in cuse_send_init()
[all …]
Dvirtio_fs.c458 struct fuse_args_pages *ap; in virtio_fs_request_complete() local
471 ap = container_of(args, typeof(*ap), args); in virtio_fs_request_complete()
472 for (i = 0; i < ap->num_pages; i++) { in virtio_fs_request_complete()
473 thislen = ap->descs[i].length; in virtio_fs_request_complete()
475 WARN_ON(ap->descs[i].offset); in virtio_fs_request_complete()
476 page = ap->pages[i]; in virtio_fs_request_complete()
839 struct fuse_args_pages *ap = container_of(args, typeof(*ap), args); in sg_count_fuse_req() local
846 total_sgs += ap->num_pages; in sg_count_fuse_req()
857 total_sgs += ap->num_pages; in sg_count_fuse_req()
891 struct fuse_args_pages *ap = container_of(req->args, typeof(*ap), args); in sg_init_fuse_args() local
[all …]
Ddev.c979 struct fuse_args_pages *ap = container_of(req->args, typeof(*ap), args); in fuse_copy_pages() local
982 for (i = 0; i < ap->num_pages && (nbytes || zeroing); i++) { in fuse_copy_pages()
984 unsigned int offset = ap->descs[i].offset; in fuse_copy_pages()
985 unsigned int count = min(nbytes, ap->descs[i].length); in fuse_copy_pages()
987 err = fuse_copy_page(cs, &ap->pages[i], offset, count, zeroing); in fuse_copy_pages()
1656 struct fuse_args_pages ap; member
1664 container_of(args, typeof(*ra), ap.args); in fuse_retrieve_end()
1666 release_pages(ra->ap.pages, ra->ap.num_pages); in fuse_retrieve_end()
1683 struct fuse_args_pages *ap; in fuse_retrieve() local
1698 args_size += num_pages * (sizeof(ap->pages[0]) + sizeof(ap->descs[0])); in fuse_retrieve()
[all …]
Dreaddir.c333 struct fuse_args_pages *ap = &ia.ap; in fuse_readdir_uncached() local
343 ap->args.out_pages = 1; in fuse_readdir_uncached()
344 ap->num_pages = 1; in fuse_readdir_uncached()
345 ap->pages = &page; in fuse_readdir_uncached()
346 ap->descs = &desc; in fuse_readdir_uncached()
356 res = fuse_simple_request(fc, &ap->args); in fuse_readdir_uncached()
Ddir.c1272 struct fuse_args_pages ap = { in fuse_readlink_page() local
1280 ap.args.opcode = FUSE_READLINK; in fuse_readlink_page()
1281 ap.args.nodeid = get_node_id(inode); in fuse_readlink_page()
1282 ap.args.out_pages = true; in fuse_readlink_page()
1283 ap.args.out_argvar = true; in fuse_readlink_page()
1284 ap.args.page_zeroing = true; in fuse_readlink_page()
1285 ap.args.out_numargs = 1; in fuse_readlink_page()
1286 ap.args.out_args[0].size = desc.length; in fuse_readlink_page()
1287 res = fuse_simple_request(fc, &ap.args); in fuse_readlink_page()
Dfuse_i.h854 struct fuse_args_pages ap; member
/fs/xfs/
Dxfs_bmap_util.c73 struct xfs_bmalloca *ap) /* bmap alloc argument struct */ in xfs_bmap_rtalloc() argument
83 mp = ap->ip->i_mount; in xfs_bmap_rtalloc()
84 align = xfs_get_extsz_hint(ap->ip); in xfs_bmap_rtalloc()
86 error = xfs_bmap_extsize_align(mp, &ap->got, &ap->prev, in xfs_bmap_rtalloc()
87 align, 1, ap->eof, 0, in xfs_bmap_rtalloc()
88 ap->conv, &ap->offset, &ap->length); in xfs_bmap_rtalloc()
91 ASSERT(ap->length); in xfs_bmap_rtalloc()
92 ASSERT(ap->length % mp->m_sb.sb_rextsize == 0); in xfs_bmap_rtalloc()
98 div_u64_rem(ap->offset, align, &mod); in xfs_bmap_rtalloc()
99 if (mod || ap->length % align) in xfs_bmap_rtalloc()
[all …]
Dxfs_filestream.c353 struct xfs_bmalloca *ap, in xfs_filestream_new_ag() argument
356 struct xfs_inode *ip = ap->ip, *pip; in xfs_filestream_new_ag()
358 xfs_extlen_t minlen = ap->length; in xfs_filestream_new_ag()
377 if (xfs_alloc_is_userdata(ap->datatype)) in xfs_filestream_new_ag()
379 if (ap->tp->t_flags & XFS_TRANS_LOWMODE) in xfs_filestream_new_ag()
Dxfs_bmap_util.h20 int xfs_bmap_rtalloc(struct xfs_bmalloca *ap);
27 xfs_bmap_rtalloc(struct xfs_bmalloca *ap) in xfs_bmap_rtalloc() argument
52 void xfs_bmap_adjacent(struct xfs_bmalloca *ap);
Dxfs_filestream.h17 int xfs_filestream_new_ag(struct xfs_bmalloca *ap, xfs_agnumber_t *agp);
Dxfs_buf.c1893 struct xfs_buf *ap = container_of(a, struct xfs_buf, b_list); in xfs_buf_cmp() local
1897 diff = ap->b_maps[0].bm_bn - bp->b_maps[0].bm_bn; in xfs_buf_cmp()
/fs/xfs/libxfs/
Dxfs_bmap.c3046 struct xfs_bmalloca *ap) /* bmap alloc argument struct */ in xfs_bmap_adjacent() argument
3061 mp = ap->ip->i_mount; in xfs_bmap_adjacent()
3062 nullfb = ap->tp->t_firstblock == NULLFSBLOCK; in xfs_bmap_adjacent()
3063 rt = XFS_IS_REALTIME_INODE(ap->ip) && in xfs_bmap_adjacent()
3064 xfs_alloc_is_userdata(ap->datatype); in xfs_bmap_adjacent()
3066 ap->tp->t_firstblock); in xfs_bmap_adjacent()
3071 if (ap->eof && ap->prev.br_startoff != NULLFILEOFF && in xfs_bmap_adjacent()
3072 !isnullstartblock(ap->prev.br_startblock) && in xfs_bmap_adjacent()
3073 ISVALID(ap->prev.br_startblock + ap->prev.br_blockcount, in xfs_bmap_adjacent()
3074 ap->prev.br_startblock)) { in xfs_bmap_adjacent()
[all …]
/fs/gfs2/
Dquota.h27 struct gfs2_alloc_parms *ap);
41 struct gfs2_alloc_parms *ap) in gfs2_quota_lock_check() argument
46 ap->allowed = UINT_MAX; /* Assume we are permitted a whole lot */ in gfs2_quota_lock_check()
55 ret = gfs2_quota_check(ip, ip->i_inode.i_uid, ip->i_inode.i_gid, ap); in gfs2_quota_lock_check()
Dfile.c451 struct gfs2_alloc_parms ap = { .aflags = 0, }; in gfs2_page_mkwrite() local
492 ap.target = data_blocks + ind_blocks; in gfs2_page_mkwrite()
493 ret = gfs2_quota_lock_check(ip, &ap); in gfs2_page_mkwrite()
496 ret = gfs2_inplace_reserve(ip, &ap); in gfs2_page_mkwrite()
994 struct gfs2_alloc_parms ap = { .aflags = 0, }; in __gfs2_fallocate() local
1019 ap.min_target = data_blocks + ind_blocks; in __gfs2_fallocate()
1041 ap.target = data_blocks + ind_blocks; in __gfs2_fallocate()
1043 error = gfs2_quota_lock_check(ip, &ap); in __gfs2_fallocate()
1049 if (ap.allowed) in __gfs2_fallocate()
1050 max_blks = ap.allowed; in __gfs2_fallocate()
[all …]
Dinode.c375 struct gfs2_alloc_parms ap = { .target = *dblocks, .aflags = flags, }; in alloc_dinode() local
378 error = gfs2_quota_lock_check(ip, &ap); in alloc_dinode()
382 error = gfs2_inplace_reserve(ip, &ap); in alloc_dinode()
517 struct gfs2_alloc_parms ap = { .target = da->nr_blocks, }; in link_dinode() local
521 error = gfs2_quota_lock_check(dip, &ap); in link_dinode()
525 error = gfs2_inplace_reserve(dip, &ap); in link_dinode()
963 struct gfs2_alloc_parms ap = { .target = da.nr_blocks, }; in gfs2_link() local
964 error = gfs2_quota_lock_check(dip, &ap); in gfs2_link()
968 error = gfs2_inplace_reserve(dip, &ap); in gfs2_link()
1513 struct gfs2_alloc_parms ap = { .target = da.nr_blocks, }; in gfs2_rename() local
[all …]
Dquota.c880 struct gfs2_alloc_parms ap = { .aflags = 0, }; in do_sync() local
933 ap.target = reserved; in do_sync()
934 error = gfs2_inplace_reserve(ip, &ap); in do_sync()
1200 struct gfs2_alloc_parms *ap) in gfs2_quota_check() argument
1208 ap->allowed = UINT_MAX; /* Assume we are permitted a whole lot */ in gfs2_quota_check()
1229 if (limit > 0 && (limit - value) < ap->allowed) in gfs2_quota_check()
1230 ap->allowed = limit - value; in gfs2_quota_check()
1232 if (limit && limit < (value + (s64)ap->target)) { in gfs2_quota_check()
1235 if (!ap->min_target || ap->min_target > ap->allowed) { in gfs2_quota_check()
1725 struct gfs2_alloc_parms ap = { .aflags = 0, }; in gfs2_set_dqblk() local
[all …]
Drgrp.c1573 const struct gfs2_alloc_parms *ap) in rg_mblk_search() argument
1586 extlen = max_t(u32, atomic_read(&ip->i_sizehint), ap->target); in rg_mblk_search()
2048 int gfs2_inplace_reserve(struct gfs2_inode *ip, struct gfs2_alloc_parms *ap) in gfs2_inplace_reserve() argument
2060 if (gfs2_assert_warn(sdp, ap->target)) in gfs2_inplace_reserve()
2071 if (S_ISDIR(ip->i_inode.i_mode) && (ap->aflags & GFS2_AF_ORLOV)) in gfs2_inplace_reserve()
2112 (loops == 0 && ap->target > rs->rs_rbm.rgd->rd_extfail_pt)) in gfs2_inplace_reserve()
2120 rg_mblk_search(rs->rs_rbm.rgd, ip, ap); in gfs2_inplace_reserve()
2128 if (free_blocks >= ap->target || in gfs2_inplace_reserve()
2129 (loops == 2 && ap->min_target && in gfs2_inplace_reserve()
2130 free_blocks >= ap->min_target)) { in gfs2_inplace_reserve()
[all …]
Drgrp.h42 struct gfs2_alloc_parms *ap);
Dbmap.c1075 struct gfs2_alloc_parms ap = {}; in gfs2_iomap_begin_write() local
1081 ap.target = data_blocks + ind_blocks; in gfs2_iomap_begin_write()
1082 ret = gfs2_quota_lock_check(ip, &ap); in gfs2_iomap_begin_write()
1086 ret = gfs2_inplace_reserve(ip, &ap); in gfs2_iomap_begin_write()
2114 struct gfs2_alloc_parms ap = { .target = 1, }; in do_grow() local
2120 error = gfs2_quota_lock_check(ip, &ap); in do_grow()
2124 error = gfs2_inplace_reserve(ip, &ap); in do_grow()
Dxattr.c728 struct gfs2_alloc_parms ap = { .target = blks }; in ea_alloc_skeleton() local
735 error = gfs2_quota_lock_check(ip, &ap); in ea_alloc_skeleton()
739 error = gfs2_inplace_reserve(ip, &ap); in ea_alloc_skeleton()
/fs/xfs/scrub/
Dbitmap.c69 struct xfs_bitmap_range *ap; in xfs_bitmap_range_cmp() local
72 ap = container_of(a, struct xfs_bitmap_range, list); in xfs_bitmap_range_cmp()
75 if (ap->start > bp->start) in xfs_bitmap_range_cmp()
77 if (ap->start < bp->start) in xfs_bitmap_range_cmp()
/fs/ext4/
Dioctl.c39 unsigned char *ap, *bp; in memswap() local
41 ap = (unsigned char *)a; in memswap()
44 swap(*ap, *bp); in memswap()
45 ap++; in memswap()