Home
last modified time | relevance | path

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

12

/fs/dlm/
Dmidcomms.c35 unsigned len, unsigned limit) in copy_from_cb() argument
39 if ((copy + offset) > limit) in copy_from_cb()
40 copy = limit - offset; in copy_from_cb()
59 unsigned offset, unsigned len, unsigned limit) in dlm_process_incoming_buffer() argument
79 limit); in dlm_process_incoming_buffer()
120 copy_from_cb(p, base, offset, msglen, limit); in dlm_process_incoming_buffer()
126 offset &= (limit - 1); in dlm_process_incoming_buffer()
Dmidcomms.h18 unsigned len, unsigned limit);
/fs/xfs/quota/
Dxfs_qm_bhv.c56 __uint64_t limit; in xfs_fill_statvfs_from_dquot() local
58 limit = dp->d_blk_softlimit ? in xfs_fill_statvfs_from_dquot()
61 if (limit && statp->f_blocks > limit) { in xfs_fill_statvfs_from_dquot()
62 statp->f_blocks = limit; in xfs_fill_statvfs_from_dquot()
68 limit = dp->d_ino_softlimit ? in xfs_fill_statvfs_from_dquot()
71 if (limit && statp->f_files > limit) { in xfs_fill_statvfs_from_dquot()
72 statp->f_files = limit; in xfs_fill_statvfs_from_dquot()
/fs/configfs/
Ditem.c68 int limit = CONFIGFS_ITEM_NAME_LEN; in config_item_set_name() local
77 need = vsnprintf(item->ci_namebuf,limit,fmt,args); in config_item_set_name()
79 if (need < limit) in config_item_set_name()
85 limit = need + 1; in config_item_set_name()
86 name = kmalloc(limit,GFP_KERNEL); in config_item_set_name()
92 need = vsnprintf(name,limit,fmt,args); in config_item_set_name()
96 if (need >= limit) { in config_item_set_name()
/fs/gfs2/
Dlops.h33 unsigned int limit; in buf_limit() local
35 limit = (sdp->sd_sb.sb_bsize - BUF_OFFSET) / sizeof(__be64); in buf_limit()
36 return limit; in buf_limit()
41 unsigned int limit; in databuf_limit() local
43 limit = (sdp->sd_sb.sb_bsize - DATABUF_OFFSET) / (2 * sizeof(__be64)); in databuf_limit()
44 return limit; in databuf_limit()
Dlops.c161 unsigned int limit; in buf_lo_before_commit() local
166 limit = buf_limit(sdp); in buf_lo_before_commit()
174 if (total > limit) in buf_lo_before_commit()
175 num = limit; in buf_lo_before_commit()
/fs/minix/
Ddir.c112 char *p, *kaddr, *limit; in minix_readdir() local
119 limit = kaddr + minix_last_byte(inode, n) - chunk_size; in minix_readdir()
120 for ( ; p <= limit; p = minix_next_entry(p, sbi)) { in minix_readdir()
186 char *kaddr, *limit; in minix_find_entry() local
193 limit = kaddr + minix_last_byte(dir, n) - sbi->s_dirsize; in minix_find_entry()
194 for (p = kaddr; p <= limit; p = minix_next_entry(p, sbi)) { in minix_find_entry()
242 char *limit, *dir_end; in minix_add_link() local
251 limit = kaddr + PAGE_CACHE_SIZE - sbi->s_dirsize; in minix_add_link()
252 for (p = kaddr; p <= limit; p = minix_next_entry(p, sbi)) { in minix_add_link()
389 char *p, *kaddr, *limit; in minix_empty_dir() local
[all …]
/fs/freevxfs/
Dvxfs_lookup.c134 caddr_t baddr, limit; in vxfs_find_entry() local
139 limit = baddr + bsize - VXFS_DIRLEN(1); in vxfs_find_entry()
144 for (; (caddr_t)de <= limit; de = vxfs_next_entry(de)) { in vxfs_find_entry()
289 caddr_t baddr, limit; in vxfs_readdir() local
294 limit = baddr + bsize - VXFS_DIRLEN(1); in vxfs_readdir()
302 for (; (caddr_t)de <= limit; de = vxfs_next_entry(de)) { in vxfs_readdir()
/fs/jfs/
Djfs_types.h175 #define setDASDLIMIT(dasdp, limit)\ argument
177 (dasdp)->limit_hi = ((u64)limit) >> 32;\
178 (dasdp)->limit_lo = __cpu_to_le32(limit);\
/fs/partitions/
Dcheck.h16 int limit; member
22 if (n < p->limit) { in put_partition()
Datari.c66 for (slot = 1; pi < &rs->part[4] && slot < state->limit; slot++, pi++) { in atari_partition()
118 if (++slot == state->limit) { in atari_partition()
131 for (; pi < &rs->icdpart[8] && slot < state->limit; slot++, pi++) { in atari_partition()
Dmsdos.c124 if (state->next == state->limit) in parse_extended()
170 if (++state->next == state->limit) in parse_extended()
224 for (i=0; i<max_nparts && state->next<state->limit; i++) { in parse_solaris_x86()
268 if (state->next == state->limit) in parse_bsd()
346 if (state->next == state->limit) in parse_unixware()
388 if (state->next == state->limit) in parse_minix()
Dacorn.c145 if (slot == state->limit) in linux_partition()
192 if (slot == state->limit) in adfspart_check_CUMANA()
378 if (slot == state->limit) in adfspart_check_ICS()
Dkarma.c44 if (slot == state->limit) in karma_partition()
Dsysv68.c79 if (slot == state->limit) in sysv68_partition()
Dosf.c67 if (slot == state->limit) in osf_partition()
Dcheck.c171 state->limit = disk_max_parts(hd); in check_partition()
547 for (p = 1, highest = 0; p < state->limit; p++) in rescan_partitions()
554 for (p = 1; p < state->limit; p++) { in rescan_partitions()
/fs/ufs/
Ddir.c118 unsigned limit = PAGE_CACHE_SIZE; in ufs_check_page() local
124 limit = dir->i_size & ~PAGE_CACHE_MASK; in ufs_check_page()
125 if (limit & chunk_mask) in ufs_check_page()
127 if (!limit) in ufs_check_page()
130 for (offs = 0; offs <= limit - UFS_DIR_REC_LEN(1); offs += rec_len) { in ufs_check_page()
146 if (offs != limit) in ufs_check_page()
453 char *kaddr, *limit; in ufs_readdir() local
475 limit = kaddr + ufs_last_byte(inode, n) - UFS_DIR_REC_LEN(1); in ufs_readdir()
476 for ( ;(char*)de <= limit; de = ufs_next_entry(sb, de)) { in ufs_readdir()
/fs/ext2/
Ddir.c117 unsigned limit = PAGE_CACHE_SIZE; in ext2_check_page() local
122 limit = dir->i_size & ~PAGE_CACHE_MASK; in ext2_check_page()
123 if (limit & (chunk_size - 1)) in ext2_check_page()
125 if (!limit) in ext2_check_page()
128 for (offs = 0; offs <= limit - EXT2_DIR_REC_LEN(1); offs += rec_len) { in ext2_check_page()
143 if (offs != limit) in ext2_check_page()
300 char *kaddr, *limit; in ext2_readdir() local
321 limit = kaddr + ext2_last_byte(inode, n) - EXT2_DIR_REC_LEN(1); in ext2_readdir()
322 for ( ;(char*)de <= limit; de = ext2_next_entry(de)) { in ext2_readdir()
/fs/ramfs/
Dfile-nommu.c64 unsigned long npages, xpages, loop, limit; in ramfs_nommu_expand_for_mapping() local
75 limit = current->signal->rlim[RLIMIT_FSIZE].rlim_cur; in ramfs_nommu_expand_for_mapping()
76 if (limit != RLIM_INFINITY && newsize > limit) in ramfs_nommu_expand_for_mapping()
/fs/
Dbinfmt_aout.c35 static int aout_core_dump(long signr, struct pt_regs *regs, struct file *file, unsigned long limit);
92 static int aout_core_dump(long signr, struct pt_regs *regs, struct file *file, unsigned long limit) in aout_core_dump() argument
116 if ((dump.u_dsize + dump.u_ssize+1) * PAGE_SIZE > limit) in aout_core_dump()
120 if ((dump.u_ssize + 1) * PAGE_SIZE > limit) in aout_core_dump()
Dbinfmt_elf_fdpic.c79 static int elf_fdpic_core_dump(long, struct pt_regs *, struct file *, unsigned long limit);
1317 if ((size += (nr)) > limit || !dump_write(file, (addr), (nr))) \
1505 unsigned long *limit, unsigned long mm_flags) in elf_fdpic_dump_segments() argument
1535 if ((*size += PAGE_SIZE) > *limit || in elf_fdpic_dump_segments()
1560 unsigned long *limit, unsigned long mm_flags) in elf_fdpic_dump_segments() argument
1568 if ((*size += PAGE_SIZE) > *limit) in elf_fdpic_dump_segments()
1588 struct file *file, unsigned long limit) in elf_fdpic_core_dump() argument
1794 if (elf_fdpic_dump_segments(file, &size, &limit, mm_flags) < 0) in elf_fdpic_core_dump()
/fs/sysv/
Ddir.c84 char *kaddr, *limit; in sysv_readdir() local
92 limit = kaddr + PAGE_CACHE_SIZE - SYSV_DIRSIZE; in sysv_readdir()
93 for ( ;(char*)de <= limit; de++) { in sysv_readdir()
/fs/btrfs/
Ddisk-io.c501 unsigned long limit = min_t(unsigned long, in btrfs_async_submit_limit() local
504 return 256 * limit; in btrfs_async_submit_limit()
528 int limit; in run_one_async_done() local
533 limit = btrfs_async_submit_limit(fs_info); in run_one_async_done()
534 limit = limit * 2 / 3; in run_one_async_done()
538 if (atomic_read(&fs_info->nr_async_submits) < limit && in run_one_async_done()
583 int limit = btrfs_async_submit_limit(fs_info); in btrfs_wq_submit_bio()
584 if (atomic_read(&fs_info->nr_async_submits) > limit) { in btrfs_wq_submit_bio()
586 (atomic_read(&fs_info->nr_async_submits) < limit), in btrfs_wq_submit_bio()
590 (atomic_read(&fs_info->nr_async_bios) < limit), in btrfs_wq_submit_bio()
/fs/fat/
Dcache.c220 const int limit = sb->s_maxbytes >> MSDOS_SB(sb)->cluster_bits; in fat_get_cluster() local
243 if (*fclus > limit) { in fat_get_cluster()

12