Home
last modified time | relevance | path

Searched refs:bufsize (Results 1 – 25 of 34) sorted by relevance

12

/fs/xfs/
A Dxfs_handle.c366 ASSERT(context->firstu <= context->bufsize); in xfs_ioc_attr_put_listent()
425 size_t bufsize, in xfs_ioc_attr_list() argument
435 bufsize > XFS_XATTR_LIST_MAX) in xfs_ioc_attr_list()
458 buffer = kvzalloc(bufsize, GFP_KERNEL); in xfs_ioc_attr_list()
469 context.bufsize = round_down(bufsize, sizeof(uint32_t)); in xfs_ioc_attr_list()
470 context.firstu = context.bufsize; in xfs_ioc_attr_list()
476 alist->al_offset[0] = context.bufsize; in xfs_ioc_attr_list()
482 if (copy_to_user(ubuf, buffer, bufsize) || in xfs_ioc_attr_list()
781 size_t bufsize; in xfs_getparents() local
798 bufsize = min(bufsize, PAGE_SIZE); in xfs_getparents()
[all …]
A Dxfs_dir2_readdir.c245 size_t bufsize, in xfs_dir2_leaf_readbuf() argument
295 ra_want = howmany(bufsize + geo->blksize, (1 << geo->fsblog)); in xfs_dir2_leaf_readbuf()
351 size_t bufsize, in xfs_dir2_leaf_getdents() argument
399 error = xfs_dir2_leaf_readbuf(args, bufsize, &curoff, in xfs_dir2_leaf_getdents()
487 bufsize = bufsize > length ? bufsize - length : 0; in xfs_dir2_leaf_getdents()
515 size_t bufsize) in xfs_readdir() argument
547 error = xfs_dir2_leaf_getdents(&args, ctx, bufsize, &lock_mode); in xfs_readdir()
A Dxfs_error.h15 struct xfs_mount *mp, const void *buf, size_t bufsize,
30 #define XFS_CORRUPTION_ERROR(e, lvl, mp, buf, bufsize) \ argument
31 xfs_corruption_error(e, lvl, mp, buf, bufsize, \
A Dxfs_xattr.c336 context.bufsize = size; in xfs_vn_listxattr()
337 context.firstu = context.bufsize; in xfs_vn_listxattr()
A Dxfs_handle.h23 size_t bufsize, int flags,
A Dxfs_attr_list.c80 if (context->bufsize == 0 || in xfs_attr_shortform_list()
82 (dp->i_af.if_bytes + sf->count * 16) < context->bufsize)) { in xfs_attr_shortform_list()
110 if (context->bufsize == 0) in xfs_attr_shortform_list()
A Dxfs_error.c400 size_t bufsize, in xfs_corruption_error() argument
406 xfs_hex_dump(buf, bufsize); in xfs_corruption_error()
/fs/isofs/
A Ddir.c86 unsigned long bufsize = ISOFS_BUFFER_SIZE(inode); in do_isofs_readdir() local
98 offset = ctx->pos & (bufsize - 1); in do_isofs_readdir()
134 if (offset >= bufsize) { in do_isofs_readdir()
135 int slop = bufsize - offset + de_len; in do_isofs_readdir()
137 offset &= bufsize - 1; in do_isofs_readdir()
A Dnamei.c40 unsigned long bufsize = ISOFS_BUFFER_SIZE(dir); in isofs_find_entry() local
82 if (offset >= bufsize) { in isofs_find_entry()
83 int slop = bufsize - offset + de_len; in isofs_find_entry()
85 offset &= bufsize - 1; in isofs_find_entry()
A Dcompress.c46 unsigned int bufsize = ISOFS_BUFFER_SIZE(inode); in zisofs_uncompress_block() local
48 unsigned int bufmask = bufsize - 1; in zisofs_uncompress_block()
139 stream.avail_in = min_t(unsigned, bufsize - in zisofs_uncompress_block()
A Dinode.c1165 unsigned long bufsize = ISOFS_BUFFER_SIZE(inode); in isofs_read_level3_size() local
1210 if (offset >= bufsize) { in isofs_read_level3_size()
1211 int slop = bufsize - offset + de_len; in isofs_read_level3_size()
1218 offset &= bufsize - 1; in isofs_read_level3_size()
1268 unsigned long bufsize = ISOFS_BUFFER_SIZE(inode); in isofs_read_inode() local
1292 if (offset + de_len > bufsize) { in isofs_read_inode()
1293 int frag1 = bufsize - offset; in isofs_read_inode()
A Drock.c701 unsigned long bufsize = ISOFS_BUFFER_SIZE(inode); in rock_ridge_symlink_read_folio() local
729 if (offset + *pnt > bufsize) in rock_ridge_symlink_read_folio()
/fs/pstore/
A Dplatform.c227 compressed_size = (psinfo->bufsize * 100) / DMESG_COMP_PERCENT; in allocate_buf_for_compression()
231 psinfo->bufsize, compress); in allocate_buf_for_compression()
320 dst_size = max_compressed_size ?: psinfo->bufsize; in pstore_dump()
335 psinfo->bufsize); in pstore_dump()
348 record.size = psinfo->bufsize; in pstore_dump()
349 memcpy(psinfo->buf, dst, psinfo->bufsize); in pstore_dump()
613 max_uncompressed_size = 3 * psinfo->bufsize; in decompress_record()
A Dram.c841 cxt->pstore.bufsize = cxt->dprzs[0]->buffer_size; in ramoops_probe()
842 cxt->pstore.buf = kvzalloc(cxt->pstore.bufsize, GFP_KERNEL); in ramoops_probe()
877 cxt->pstore.bufsize = 0; in ramoops_probe()
891 cxt->pstore.bufsize = 0; in ramoops_remove()
A Dzone.c1375 cxt->pstore.bufsize = cxt->kpszs[0]->buffer_size - in register_pstore_zone()
1377 cxt->pstore.buf = kzalloc(cxt->pstore.bufsize, GFP_KERNEL); in register_pstore_zone()
1422 cxt->pstore.bufsize = 0; in register_pstore_zone()
1456 cxt->pstore.bufsize = 0; in unregister_pstore_zone()
/fs/xfs/scrub/
A Dstats.c250 size_t bufsize; in xchk_scrub_stats_read() local
261 bufsize = xchk_stats_estimate_bufsize(cs); in xchk_scrub_stats_read()
263 buf = kvmalloc(bufsize, XCHK_GFP_FLAGS); in xchk_scrub_stats_read()
267 avail = xchk_stats_format(cs, buf, bufsize); in xchk_scrub_stats_read()
A Dparent_repair.c867 size_t bufsize) in xrep_parent_alloc_xattr_value() argument
871 if (rp->xattr_value_sz >= bufsize) in xrep_parent_alloc_xattr_value()
880 new_val = kvmalloc(bufsize, XCHK_GFP_FLAGS); in xrep_parent_alloc_xattr_value()
885 rp->xattr_value_sz = bufsize; in xrep_parent_alloc_xattr_value()
/fs/nfsd/
A Dnfscache.c592 size_t bufsize = 0; in nfsd_cache_update() local
616 bufsize = len << 2; in nfsd_cache_update()
617 cachv->iov_base = kmalloc(bufsize, GFP_KERNEL); in nfsd_cache_update()
622 cachv->iov_len = bufsize; in nfsd_cache_update()
623 memcpy(cachv->iov_base, statp, bufsize); in nfsd_cache_update()
630 nfsd_stats_drc_mem_usage_add(nn, bufsize); in nfsd_cache_update()
/fs/fuse/
A Dreaddir.c344 size_t bufsize = clamp((unsigned int) ctx->count, PAGE_SIZE, fc->max_pages << PAGE_SHIFT); in fuse_readdir_uncached() local
348 buf = kvmalloc(bufsize, GFP_KERNEL); in fuse_readdir_uncached()
358 fuse_read_args_fill(&ia, file, ctx->pos, bufsize, FUSE_READDIRPLUS); in fuse_readdir_uncached()
360 fuse_read_args_fill(&ia, file, ctx->pos, bufsize, FUSE_READDIR); in fuse_readdir_uncached()
/fs/befs/
A Dbtree.h11 loff_t key_no, size_t bufsize, char *keybuf,
A Dbtree.c412 loff_t key_no, size_t bufsize, char *keybuf, size_t * keysize, in befs_btree_read() argument
496 if (bufsize < keylen + 1) { in befs_btree_read()
498 "for key of size %d", __func__, bufsize, keylen); in befs_btree_read()
/fs/xfs/libxfs/
A Dxfs_attr.h69 int bufsize; /* total buffer size */ member
A Dxfs_dir2_priv.h190 struct dir_context *ctx, size_t bufsize);
/fs/debugfs/
A Dfile.c1215 static size_t u32_format_array(char *buf, size_t bufsize, in u32_format_array() argument
1224 len = snprintf(buf, bufsize, "%u%c", *array++, term); in u32_format_array()
1228 bufsize -= len; in u32_format_array()
/fs/
A Dnamespace.c5233 size_t bufsize; member
5615 if (kbufsize >= s->bufsize) in statmount_string()
5636 size_t copysize = min_t(size_t, s->bufsize, sizeof(*sm)); in copy_statmount_to_user()
5835 struct statmount __user *buf, size_t bufsize, in prepare_kstatmount() argument
5838 if (!access_ok(buf, bufsize)) in prepare_kstatmount()
5844 ks->bufsize = bufsize; in prepare_kstatmount()
5847 if (bufsize == sizeof(ks->sm)) in prepare_kstatmount()
5926 struct statmount __user *, buf, size_t, bufsize, in SYSCALL_DEFINE4() argument
5956 ret = prepare_kstatmount(ks, &kreq, buf, bufsize, seq_size); in SYSCALL_DEFINE4()

Completed in 655 milliseconds

12