Home
last modified time | relevance | path

Searched refs:limit (Results 1 – 25 of 48) sorted by relevance

12

/fs/romfs/
Dstorage.c131 unsigned long pos, size_t limit) in romfs_blk_strnlen() argument
140 while (limit > 0) { in romfs_blk_strnlen()
142 segment = min_t(size_t, limit, ROMBSIZE - offset); in romfs_blk_strnlen()
151 limit -= segment; in romfs_blk_strnlen()
217 size_t limit; in romfs_dev_read() local
219 limit = romfs_maxsize(sb); in romfs_dev_read()
220 if (pos >= limit || buflen > limit - pos) in romfs_dev_read()
240 size_t limit; in romfs_dev_strnlen() local
242 limit = romfs_maxsize(sb); in romfs_dev_strnlen()
243 if (pos >= limit) in romfs_dev_strnlen()
[all …]
/fs/xfs/
Dxfs_qm_bhv.c24 uint64_t limit; in xfs_fill_statvfs_from_dquot() local
26 limit = dqp->q_blk.softlimit ? in xfs_fill_statvfs_from_dquot()
29 if (limit && statp->f_blocks > limit) { in xfs_fill_statvfs_from_dquot()
30 statp->f_blocks = limit; in xfs_fill_statvfs_from_dquot()
36 limit = dqp->q_ino.softlimit ? in xfs_fill_statvfs_from_dquot()
39 if (limit && statp->f_files > limit) { in xfs_fill_statvfs_from_dquot()
40 statp->f_files = limit; in xfs_fill_statvfs_from_dquot()
Dxfs_pnfs.c89 loff_t limit; in xfs_fs_map_blocks() local
123 limit = mp->m_super->s_maxbytes; in xfs_fs_map_blocks()
125 limit = max(limit, round_up(i_size_read(inode), in xfs_fs_map_blocks()
127 if (offset > limit) in xfs_fs_map_blocks()
129 if (offset > limit - length) in xfs_fs_map_blocks()
130 length = limit - offset; in xfs_fs_map_blocks()
Dxfs_rtalloc.h109 xfs_rtblock_t start, xfs_rtblock_t limit,
112 xfs_rtblock_t start, xfs_rtblock_t limit,
/fs/gfs2/
Dlops.h32 unsigned int limit; in buf_limit() local
34 limit = (sdp->sd_sb.sb_bsize - BUF_OFFSET) / sizeof(__be64); in buf_limit()
35 return limit; in buf_limit()
40 unsigned int limit; in databuf_limit() local
42 limit = (sdp->sd_sb.sb_bsize - DATABUF_OFFSET) / (2 * sizeof(__be64)); in databuf_limit()
43 return limit; in databuf_limit()
Dlops.c645 static void gfs2_before_commit(struct gfs2_sbd *sdp, unsigned int limit, in gfs2_before_commit() argument
661 if (total > limit) in gfs2_before_commit()
662 num = limit; in gfs2_before_commit()
721 unsigned int limit = buf_limit(sdp); /* 503 for 4k blocks */ in buf_lo_before_commit() local
726 gfs2_before_commit(sdp, limit, nbuf, &tr->tr_buf, 0); in buf_lo_before_commit()
979 unsigned int limit = databuf_limit(sdp); in databuf_lo_before_commit() local
984 gfs2_before_commit(sdp, limit, nbuf, &tr->tr_databuf, 1); in databuf_lo_before_commit()
/fs/freevxfs/
Dvxfs_lookup.c86 loff_t limit = VXFS_DIRROUND(ip->i_size); in vxfs_find_entry() local
91 while (pos < limit) { in vxfs_find_entry()
101 while (pg_ofs < PAGE_SIZE && pos < limit) { in vxfs_find_entry()
220 loff_t pos, limit; in vxfs_readdir() local
234 limit = VXFS_DIRROUND(ip->i_size); in vxfs_readdir()
235 if (ctx->pos > limit) in vxfs_readdir()
240 while (pos < limit) { in vxfs_readdir()
252 while (pg_ofs < PAGE_SIZE && pos < limit) { in vxfs_readdir()
/fs/minix/
Ddir.c100 char *p, *kaddr, *limit; in minix_readdir() local
107 limit = kaddr + minix_last_byte(inode, n) - chunk_size; in minix_readdir()
108 for ( ; p <= limit; p = minix_next_entry(p, sbi)) { in minix_readdir()
168 char *kaddr, *limit; in minix_find_entry() local
175 limit = kaddr + minix_last_byte(dir, n) - sbi->s_dirsize; in minix_find_entry()
176 for (p = kaddr; p <= limit; p = minix_next_entry(p, sbi)) { in minix_find_entry()
224 char *limit, *dir_end; in minix_add_link() local
233 limit = kaddr + PAGE_SIZE - sbi->s_dirsize; in minix_add_link()
234 for (p = kaddr; p <= limit; p = minix_next_entry(p, sbi)) { in minix_add_link()
370 char *p, *kaddr, *limit; in minix_empty_dir() local
[all …]
/fs/nilfs2/
Ddir.c123 unsigned int limit = PAGE_SIZE; in nilfs_check_page() local
128 limit = dir->i_size & ~PAGE_MASK; in nilfs_check_page()
129 if (limit & (chunk_size - 1)) in nilfs_check_page()
131 if (!limit) in nilfs_check_page()
134 for (offs = 0; offs <= limit - NILFS_DIR_REC_LEN(1); offs += rec_len) { in nilfs_check_page()
147 if (offs != limit) in nilfs_check_page()
276 char *kaddr, *limit; in nilfs_readdir() local
287 limit = kaddr + nilfs_last_byte(inode, n) - in nilfs_readdir()
289 for ( ; (char *)de <= limit; de = nilfs_next_entry(de)) { in nilfs_readdir()
/fs/ext2/
Ddir.c123 unsigned limit = PAGE_SIZE; in ext2_check_page() local
128 limit = dir->i_size & ~PAGE_MASK; in ext2_check_page()
129 if (limit & (chunk_size - 1)) in ext2_check_page()
131 if (!limit) in ext2_check_page()
134 for (offs = 0; offs <= limit - EXT2_DIR_REC_LEN(1); offs += rec_len) { in ext2_check_page()
149 if (offs != limit) in ext2_check_page()
283 char *kaddr, *limit; in ext2_readdir() local
304 limit = kaddr + ext2_last_byte(inode, n) - EXT2_DIR_REC_LEN(1); in ext2_readdir()
305 for ( ;(char*)de <= limit; de = ext2_next_entry(de)) { in ext2_readdir()
/fs/ufs/
Ddir.c116 unsigned limit = PAGE_SIZE; in ufs_check_page() local
122 limit = dir->i_size & ~PAGE_MASK; in ufs_check_page()
123 if (limit & chunk_mask) in ufs_check_page()
125 if (!limit) in ufs_check_page()
128 for (offs = 0; offs <= limit - UFS_DIR_REC_LEN(1); offs += rec_len) { in ufs_check_page()
144 if (offs != limit) in ufs_check_page()
441 char *kaddr, *limit; in ufs_readdir() local
463 limit = kaddr + ufs_last_byte(inode, n) - UFS_DIR_REC_LEN(1); in ufs_readdir()
464 for ( ;(char*)de <= limit; de = ufs_next_entry(sb, de)) { in ufs_readdir()
/fs/jfs/
Djfs_types.h144 #define setDASDLIMIT(dasdp, limit)\ argument
146 (dasdp)->limit_hi = ((u64)limit) >> 32;\
147 (dasdp)->limit_lo = __cpu_to_le32(limit);\
/fs/configfs/
Ditem.c53 int limit = CONFIGFS_ITEM_NAME_LEN; in config_item_set_name() local
62 need = vsnprintf(item->ci_namebuf, limit, fmt, args); in config_item_set_name()
64 if (need < limit) in config_item_set_name()
/fs/
Dattr.c198 unsigned long limit; in inode_newsize_ok() local
200 limit = rlimit(RLIMIT_FSIZE); in inode_newsize_ok()
201 if (limit != RLIM_INFINITY && offset > limit) in inode_newsize_ok()
Dexec.c477 unsigned long limit, ptr_size; in bprm_stack_limits() local
487 limit = _STK_LIM / 4 * 3; in bprm_stack_limits()
488 limit = min(limit, bprm->rlim_stack.rlim_cur / 4); in bprm_stack_limits()
493 limit = max_t(unsigned long, limit, ARG_MAX); in bprm_stack_limits()
508 if (limit <= ptr_size) in bprm_stack_limits()
510 limit -= ptr_size; in bprm_stack_limits()
512 bprm->argmin = bprm->p - limit; in bprm_stack_limits()
Dcoredump.c598 .limit = rlimit(RLIMIT_CORE), in do_coredump()
650 if (cprm.limit == 1) { in do_coredump()
672 cprm.limit = RLIM_INFINITY; in do_coredump()
712 if (cprm.limit < binfmt->min_coredump) in do_coredump()
843 if (cprm->written + nr > cprm->limit) in dump_emit()
/fs/qnx6/
Ddir.c129 int limit = last_entry(inode, n); in qnx6_readdir() local
139 for (; i < limit; i++, de++, ctx->pos += QNX6_DIR_ENTRY_SIZE) { in qnx6_readdir()
237 int limit = last_entry(dir, n); in qnx6_find_entry() local
241 for (i = 0; i < limit; i++, de++) { in qnx6_find_entry()
/fs/fuse/
Dcontrol.c81 unsigned limit = (1 << 16) - 1; in fuse_conn_limit_write() local
92 limit = min(limit, global_limit); in fuse_conn_limit_write()
94 if (t > limit) in fuse_conn_limit_write()
/fs/nfsd/
Dnfscache.c70 unsigned int limit; in nfsd_cache_size_limit() local
73 limit = (16 * int_sqrt(low_pages)) << (PAGE_SHIFT-10); in nfsd_cache_size_limit()
74 return min_t(unsigned int, limit, 256*1024); in nfsd_cache_size_limit()
82 nfsd_hashsize(unsigned int limit) in nfsd_hashsize() argument
84 return roundup_pow_of_two(limit / TARGET_BUCKET_SIZE); in nfsd_hashsize()
/fs/incfs/
Dverity.c302 int limit, lvl, i, result; in incfs_build_merkle_tree() local
318 limit = df->df_data_block_count; in incfs_build_merkle_tree()
320 for (i = 0; i < limit; ++i) { in incfs_build_merkle_tree()
370 limit = DIV_ROUND_UP(limit, in incfs_build_merkle_tree()
/fs/sysv/
Ddir.c81 char *kaddr, *limit; in sysv_readdir() local
89 limit = kaddr + PAGE_SIZE - SYSV_DIRSIZE; in sysv_readdir()
90 for ( ;(char*)de <= limit; de++, ctx->pos += sizeof(*de)) { in sysv_readdir()
/fs/btrfs/
Dqgroup.c1680 struct btrfs_qgroup_limit *limit) in btrfs_limit_qgroup() argument
1704 if (limit->flags & BTRFS_QGROUP_LIMIT_MAX_RFER) { in btrfs_limit_qgroup()
1705 if (limit->max_rfer == CLEAR_VALUE) { in btrfs_limit_qgroup()
1707 limit->flags &= ~BTRFS_QGROUP_LIMIT_MAX_RFER; in btrfs_limit_qgroup()
1710 qgroup->max_rfer = limit->max_rfer; in btrfs_limit_qgroup()
1713 if (limit->flags & BTRFS_QGROUP_LIMIT_MAX_EXCL) { in btrfs_limit_qgroup()
1714 if (limit->max_excl == CLEAR_VALUE) { in btrfs_limit_qgroup()
1716 limit->flags &= ~BTRFS_QGROUP_LIMIT_MAX_EXCL; in btrfs_limit_qgroup()
1719 qgroup->max_excl = limit->max_excl; in btrfs_limit_qgroup()
1722 if (limit->flags & BTRFS_QGROUP_LIMIT_RSV_RFER) { in btrfs_limit_qgroup()
[all …]
/fs/nfs/
Dnfs4namespace.c114 char *limit; in nfs4_path() local
115 char *path = nfs_path(&limit, dentry, buffer, buflen, in nfs4_path()
118 char *path_component = nfs_path_component(path, limit); in nfs4_path()
/fs/xfs/libxfs/
Dxfs_rtbitmap.c98 xfs_rtblock_t limit, /* last block to look at */ in xfs_rtfind_back() argument
130 len = start - limit + 1; in xfs_rtfind_back()
273 xfs_rtblock_t limit, /* last block to look at */ in xfs_rtfind_forw() argument
305 len = limit - start + 1; in xfs_rtfind_forw()
/fs/ocfs2/
Ddir.c1189 char *trailer, *de_buf, *limit, *start = dirblock_bh->b_data; in ocfs2_find_max_rec_len() local
1194 limit = start + size; in ocfs2_find_max_rec_len()
1206 } while (de_buf < limit); in ocfs2_find_max_rec_len()
2594 char *de_buf, *limit; in ocfs2_dx_dir_index_block() local
2601 limit = de_buf + dir->i_sb->s_blocksize; in ocfs2_dx_dir_index_block()
2603 while (de_buf < limit) { in ocfs2_dx_dir_index_block()
2639 char *de_buf, *limit; in ocfs2_dx_dir_index_root_block() local
2648 limit = de_buf + dir->i_sb->s_blocksize; in ocfs2_dx_dir_index_root_block()
2650 while (de_buf < limit) { in ocfs2_dx_dir_index_root_block()
2682 char *de_buf, *limit; in ocfs2_new_dx_should_be_inline() local
[all …]

12