/fs/romfs/ |
D | storage.c | 131 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) in romfs_dev_read() 222 if (buflen > limit - pos) in romfs_dev_read() 223 buflen = limit - pos; in romfs_dev_read() 242 size_t limit; in romfs_dev_strnlen() local [all …]
|
/fs/xfs/ |
D | xfs_qm_bhv.c | 24 uint64_t limit; in xfs_fill_statvfs_from_dquot() local 26 limit = dqp->q_core.d_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_core.d_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()
|
D | xfs_pnfs.c | 89 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()
|
D | xfs_rtalloc.h | 109 xfs_rtblock_t start, xfs_rtblock_t limit, 112 xfs_rtblock_t start, xfs_rtblock_t limit,
|
/fs/dlm/ |
D | midcomms.c | 33 unsigned len, unsigned limit) in copy_from_cb() argument 37 if ((copy + offset) > limit) in copy_from_cb() 38 copy = limit - offset; in copy_from_cb() 57 unsigned offset, unsigned len, unsigned limit) in dlm_process_incoming_buffer() argument 77 limit); in dlm_process_incoming_buffer() 118 copy_from_cb(p, base, offset, msglen, limit); in dlm_process_incoming_buffer() 124 offset &= (limit - 1); in dlm_process_incoming_buffer()
|
D | midcomms.h | 16 unsigned len, unsigned limit);
|
/fs/gfs2/ |
D | lops.h | 32 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()
|
D | lops.c | 618 static void gfs2_before_commit(struct gfs2_sbd *sdp, unsigned int limit, in gfs2_before_commit() argument 634 if (total > limit) in gfs2_before_commit() 635 num = limit; in gfs2_before_commit() 694 unsigned int limit = buf_limit(sdp); /* 503 for 4k blocks */ in buf_lo_before_commit() local 699 gfs2_before_commit(sdp, limit, nbuf, &tr->tr_buf, 0); in buf_lo_before_commit() 974 unsigned int limit = databuf_limit(sdp); in databuf_lo_before_commit() local 979 gfs2_before_commit(sdp, limit, nbuf, &tr->tr_databuf, 1); in databuf_lo_before_commit()
|
/fs/freevxfs/ |
D | vxfs_lookup.c | 86 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/ |
D | dir.c | 100 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/sdcardfs/ |
D | derived_perm.c | 270 struct limit_search *limit) in descendant_may_need_fixup() argument 273 return (limit->flags & BY_USERID) ? in descendant_may_need_fixup() 274 data->userid == limit->userid : 1; in descendant_may_need_fixup() 288 static void __fixup_perms_recursive(struct dentry *dentry, struct limit_search *limit, int depth) in __fixup_perms_recursive() argument 309 if (!(limit->flags & BY_NAME) || qstr_case_eq(&child->d_name, &limit->name)) { in __fixup_perms_recursive() 319 } else if (descendant_may_need_fixup(info->data, limit)) { in __fixup_perms_recursive() 321 __fixup_perms_recursive(child, limit, depth + 1); in __fixup_perms_recursive() 327 void fixup_perms_recursive(struct dentry *dentry, struct limit_search *limit) in fixup_perms_recursive() argument 329 __fixup_perms_recursive(dentry, limit, 0); in fixup_perms_recursive()
|
D | packagelist.c | 255 struct limit_search limit = { in fixup_all_perms_name() local 261 fixup_perms_recursive(sbinfo->sb->s_root, &limit); in fixup_all_perms_name() 268 struct limit_search limit = { in fixup_all_perms_name_userid() local 275 fixup_perms_recursive(sbinfo->sb->s_root, &limit); in fixup_all_perms_name_userid() 282 struct limit_search limit = { in fixup_all_perms_userid() local 288 fixup_perms_recursive(sbinfo->sb->s_root, &limit); in fixup_all_perms_userid()
|
/fs/nilfs2/ |
D | dir.c | 123 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/ufs/ |
D | dir.c | 116 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/ext2/ |
D | dir.c | 123 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/jfs/ |
D | jfs_types.h | 144 #define setDASDLIMIT(dasdp, limit)\ argument 146 (dasdp)->limit_hi = ((u64)limit) >> 32;\ 147 (dasdp)->limit_lo = __cpu_to_le32(limit);\
|
/fs/configfs/ |
D | item.c | 53 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/ |
D | attr.c | 138 unsigned long limit; in inode_newsize_ok() local 140 limit = rlimit(RLIMIT_FSIZE); in inode_newsize_ok() 141 if (limit != RLIM_INFINITY && offset > limit) in inode_newsize_ok()
|
D | coredump.c | 585 .limit = rlimit(RLIMIT_CORE), in do_coredump() 637 if (cprm.limit == 1) { in do_coredump() 659 cprm.limit = RLIM_INFINITY; in do_coredump() 699 if (cprm.limit < binfmt->min_coredump) in do_coredump() 822 if (cprm->written + nr > cprm->limit) in dump_emit()
|
D | exec.c | 454 unsigned long limit, ptr_size; in prepare_arg_pages() local 472 limit = _STK_LIM / 4 * 3; in prepare_arg_pages() 473 limit = min(limit, bprm->rlim_stack.rlim_cur / 4); in prepare_arg_pages() 478 limit = max_t(unsigned long, limit, ARG_MAX); in prepare_arg_pages() 487 if (limit <= ptr_size) in prepare_arg_pages() 489 limit -= ptr_size; in prepare_arg_pages() 491 bprm->argmin = bprm->p - limit; in prepare_arg_pages()
|
/fs/qnx6/ |
D | dir.c | 129 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/ |
D | control.c | 81 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/ |
D | nfscache.c | 69 unsigned int limit; in nfsd_cache_size_limit() local 72 limit = (16 * int_sqrt(low_pages)) << (PAGE_SHIFT-10); in nfsd_cache_size_limit() 73 return min_t(unsigned int, limit, 256*1024); in nfsd_cache_size_limit() 81 nfsd_hashsize(unsigned int limit) in nfsd_hashsize() argument 83 return roundup_pow_of_two(limit / TARGET_BUCKET_SIZE); in nfsd_hashsize()
|
/fs/f2fs/ |
D | super.c | 260 block_t limit = min((sbi->user_block_count << 1) / 1000, in limit_reserve_root() local 265 F2FS_OPTION(sbi).root_reserved_blocks > limit) { in limit_reserve_root() 266 F2FS_OPTION(sbi).root_reserved_blocks = limit; in limit_reserve_root() 1216 u64 limit; in f2fs_statfs_project() local 1225 limit = 0; in f2fs_statfs_project() 1227 limit = dquot->dq_dqb.dqb_bsoftlimit; in f2fs_statfs_project() 1229 (!limit || dquot->dq_dqb.dqb_bhardlimit < limit)) in f2fs_statfs_project() 1230 limit = dquot->dq_dqb.dqb_bhardlimit; in f2fs_statfs_project() 1232 if (limit && buf->f_blocks > limit) { in f2fs_statfs_project() 1234 buf->f_blocks = limit; in f2fs_statfs_project() [all …]
|
/fs/sysv/ |
D | dir.c | 81 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()
|