/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 || 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/ |
D | xfs_qm_bhv.c | 24 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()
|
D | xfs_pnfs.c | 123 loff_t limit; in xfs_fs_map_blocks() local 157 limit = mp->m_super->s_maxbytes; in xfs_fs_map_blocks() 159 limit = max(limit, round_up(i_size_read(inode), in xfs_fs_map_blocks() 161 if (offset > limit) in xfs_fs_map_blocks() 163 if (offset > limit - length) in xfs_fs_map_blocks() 164 length = limit - offset; in xfs_fs_map_blocks()
|
D | xfs_rtalloc.h | 110 xfs_rtblock_t start, xfs_rtblock_t limit, 113 xfs_rtblock_t start, xfs_rtblock_t limit,
|
/fs/freevxfs/ |
D | vxfs_lookup.c | 62 loff_t limit = VXFS_DIRROUND(ip->i_size); in vxfs_find_entry() local 67 while (pos < limit) { in vxfs_find_entry() 77 while (pg_ofs < PAGE_SIZE && pos < limit) { in vxfs_find_entry() 196 loff_t pos, limit; in vxfs_readdir() local 210 limit = VXFS_DIRROUND(ip->i_size); in vxfs_readdir() 211 if (ctx->pos > limit) in vxfs_readdir() 216 while (pos < limit) { in vxfs_readdir() 228 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/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/ext2/ |
D | dir.c | 116 unsigned limit = PAGE_SIZE; in ext2_check_page() local 121 limit = dir->i_size & ~PAGE_MASK; in ext2_check_page() 122 if (limit & (chunk_size - 1)) in ext2_check_page() 124 if (!limit) in ext2_check_page() 127 for (offs = 0; offs <= limit - EXT2_DIR_REC_LEN(1); offs += rec_len) { in ext2_check_page() 142 if (offs != limit) in ext2_check_page() 284 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/ |
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/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 | 51 int limit = CONFIGFS_ITEM_NAME_LEN; in config_item_set_name() local 60 need = vsnprintf(item->ci_namebuf, limit, fmt, args); in config_item_set_name() 62 if (need < limit) in config_item_set_name()
|
/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/ |
D | attr.c | 253 unsigned long limit; in inode_newsize_ok() local 255 limit = rlimit(RLIMIT_FSIZE); in inode_newsize_ok() 256 if (limit != RLIM_INFINITY && offset > limit) in inode_newsize_ok()
|
D | coredump.c | 529 .limit = rlimit(RLIMIT_CORE), in do_coredump() 582 if (cprm.limit == 1) { in do_coredump() 604 cprm.limit = RLIM_INFINITY; in do_coredump() 645 if (cprm.limit < binfmt->min_coredump) in do_coredump() 798 if (cprm->written + nr > cprm->limit) in __dump_emit() 875 if (cprm->written + PAGE_SIZE > cprm->limit) in dump_emit_page()
|
D | exec.c | 479 unsigned long limit, ptr_size; in bprm_stack_limits() local 489 limit = _STK_LIM / 4 * 3; in bprm_stack_limits() 490 limit = min(limit, bprm->rlim_stack.rlim_cur / 4); in bprm_stack_limits() 495 limit = max_t(unsigned long, limit, ARG_MAX); in bprm_stack_limits() 510 if (limit <= ptr_size) in bprm_stack_limits() 512 limit -= ptr_size; in bprm_stack_limits() 514 bprm->argmin = bprm->p - limit; in bprm_stack_limits()
|
/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 | 70 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/ |
D | verity.c | 302 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/gfs2/ |
D | lops.c | 651 static void gfs2_before_commit(struct gfs2_sbd *sdp, unsigned int limit, in gfs2_before_commit() argument 667 if (total > limit) in gfs2_before_commit() 668 num = limit; in gfs2_before_commit() 727 unsigned int limit = buf_limit(sdp); /* 503 for 4k blocks */ in buf_lo_before_commit() local 732 gfs2_before_commit(sdp, limit, nbuf, &tr->tr_buf, 0); in buf_lo_before_commit() 1004 unsigned int limit = databuf_limit(sdp); in databuf_lo_before_commit() local 1009 gfs2_before_commit(sdp, limit, nbuf, &tr->tr_databuf, 1); in databuf_lo_before_commit()
|
/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()
|
/fs/smb/server/ |
D | vfs_cache.c | 33 void ksmbd_set_fd_limit(unsigned long limit) in ksmbd_set_fd_limit() argument 35 limit = min(limit, get_max_files()); in ksmbd_set_fd_limit() 36 atomic_long_set(&fd_limit, limit); in ksmbd_set_fd_limit()
|
/fs/btrfs/ |
D | qgroup.c | 1707 struct btrfs_qgroup_limit *limit) in btrfs_limit_qgroup() argument 1731 if (limit->flags & BTRFS_QGROUP_LIMIT_MAX_RFER) { in btrfs_limit_qgroup() 1732 if (limit->max_rfer == CLEAR_VALUE) { in btrfs_limit_qgroup() 1734 limit->flags &= ~BTRFS_QGROUP_LIMIT_MAX_RFER; in btrfs_limit_qgroup() 1737 qgroup->max_rfer = limit->max_rfer; in btrfs_limit_qgroup() 1740 if (limit->flags & BTRFS_QGROUP_LIMIT_MAX_EXCL) { in btrfs_limit_qgroup() 1741 if (limit->max_excl == CLEAR_VALUE) { in btrfs_limit_qgroup() 1743 limit->flags &= ~BTRFS_QGROUP_LIMIT_MAX_EXCL; in btrfs_limit_qgroup() 1746 qgroup->max_excl = limit->max_excl; in btrfs_limit_qgroup() 1749 if (limit->flags & BTRFS_QGROUP_LIMIT_RSV_RFER) { in btrfs_limit_qgroup() [all …]
|
/fs/nfs/ |
D | nfs4namespace.c | 114 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/ |
D | xfs_rtbitmap.c | 98 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/ntfs3/ |
D | super.c | 1298 unsigned long limit = global_zone_page_state(NR_FREE_PAGES) in ntfs_unmap_meta() local 1301 if (limit >= 0x2000) in ntfs_unmap_meta() 1302 limit -= 0x1000; in ntfs_unmap_meta() 1303 else if (limit < 32) in ntfs_unmap_meta() 1304 limit = 32; in ntfs_unmap_meta() 1306 limit >>= 1; in ntfs_unmap_meta() 1310 if (cnt++ >= limit) { in ntfs_unmap_meta()
|