Home
last modified time | relevance | path

Searched refs:maxsize (Results 1 – 12 of 12) sorted by relevance

/fs/erofs/
Ddir.c26 unsigned int nameoff, unsigned int maxsize) in erofs_fill_dentries() argument
43 de_namelen = strnlen(de_name, maxsize - nameoff); in erofs_fill_dentries()
48 if (nameoff + de_namelen > maxsize || in erofs_fill_dentries()
64 *ofs = maxsize; in erofs_fill_dentries()
81 unsigned int nameoff, maxsize; in erofs_readdir() local
108 maxsize = min_t(unsigned int, in erofs_readdir()
121 nameoff, maxsize); in erofs_readdir()
/fs/gfs2/
Dinode.h78 u64 minsize, u64 maxsize) in gfs2_check_internal_file_size() argument
81 if (size < minsize || size > maxsize) in gfs2_check_internal_file_size()
Dbmap.c810 unsigned int maxsize = mp->mp_fheight > 1 ? in gfs2_alloc_size() local
812 maxsize -= mp->mp_list[mp->mp_fheight - 1]; in gfs2_alloc_size()
813 if (size > maxsize) in gfs2_alloc_size()
814 size = maxsize; in gfs2_alloc_size()
1753 u64 maxsize = sdp->sd_heightsize[ip->i_height]; in punch_hole() local
1769 if (offset >= maxsize) { in punch_hole()
1798 if (end_offset > maxsize) in punch_hole()
1799 end_offset = maxsize; in punch_hole()
/fs/nfsd/
Dnfsfh.h186 fh_init(struct svc_fh *fhp, int maxsize) in fh_init() argument
189 fhp->fh_maxsize = maxsize; in fh_init()
Dnfsctl.c354 int uninitialized_var(maxsize); in write_filehandle()
377 len = get_int(&mesg, &maxsize); in write_filehandle()
381 if (maxsize < NFS_FHSIZE) in write_filehandle()
383 maxsize = min(maxsize, NFS3_FHSIZE); in write_filehandle()
393 len = exp_rootfh(netns(file), dom, path, &fh, maxsize); in write_filehandle()
Dnfsfh.c414 int maxsize = (fhp->fh_maxsize - fhp->fh_handle.fh_size)/4; in _fh_update() local
418 exportfs_encode_fh(dentry, fid, &maxsize, subtreecheck); in _fh_update()
419 fhp->fh_handle.fh_size += maxsize * 4; in _fh_update()
Dexport.h101 char *path, struct knfsd_fh *, int maxsize);
Dexport.c892 struct knfsd_fh *f, int maxsize) in exp_rootfh() argument
922 fh_init(&fh, maxsize); in exp_rootfh()
/fs/ceph/
Dfile.c81 static ssize_t __iter_get_bvecs(struct iov_iter *iter, size_t maxsize, in __iter_get_bvecs() argument
87 if (maxsize > iov_iter_count(iter)) in __iter_get_bvecs()
88 maxsize = iov_iter_count(iter); in __iter_get_bvecs()
90 while (size < maxsize) { in __iter_get_bvecs()
96 bytes = iov_iter_get_pages(iter, pages, maxsize - size, in __iter_get_bvecs()
128 static ssize_t iter_get_bvecs_alloc(struct iov_iter *iter, size_t maxsize, in iter_get_bvecs_alloc() argument
136 iov_iter_truncate(iter, maxsize); in iter_get_bvecs_alloc()
148 bytes = __iter_get_bvecs(iter, maxsize, bv); in iter_get_bvecs_alloc()
/fs/
Dread_write.c54 loff_t vfs_setpos(struct file *file, loff_t offset, loff_t maxsize) in vfs_setpos() argument
58 if (offset > maxsize) in vfs_setpos()
87 loff_t maxsize, loff_t eof) in generic_file_llseek_size() argument
108 offset = vfs_setpos(file, file->f_pos + offset, maxsize); in generic_file_llseek_size()
130 return vfs_setpos(file, offset, maxsize); in generic_file_llseek_size()
/fs/reiserfs/
Dfix_node.c1938 int maxsize, ret; in dc_check_balance_leaf() local
1952 maxsize = MAX_CHILD_SIZE(S0); /* maximal possible size of an item */ in dc_check_balance_leaf()
1956 RFALSE(-levbytes >= maxsize - B_FREE_SPACE(S0), in dc_check_balance_leaf()
/fs/nfs/
Dnfs4xdr.c4996 u64 maxsize = 0; in decode_space_limit() local
5004 xdr_decode_hyper(p, &maxsize); in decode_space_limit()
5009 maxsize = (uint64_t)nblocks * (uint64_t)blocksize; in decode_space_limit()
5011 maxsize >>= PAGE_SHIFT; in decode_space_limit()
5012 *pagemod_limit = min_t(u64, maxsize, ULONG_MAX); in decode_space_limit()