/fs/xfs/ |
D | xfs_rtalloc.c | 225 xfs_extlen_t minlen, /* minimum length to allocate */ in xfs_rtallocate_extent_block() argument 280 if (minlen < maxlen) { in xfs_rtallocate_extent_block() 284 if (thislen >= minlen && thislen > bestlen) { in xfs_rtallocate_extent_block() 303 if (minlen < maxlen && besti != -1) { in xfs_rtallocate_extent_block() 345 xfs_extlen_t minlen, /* minimum length to allocate */ in xfs_rtallocate_extent_exact() argument 358 ASSERT(minlen % prod == 0 && maxlen % prod == 0); in xfs_rtallocate_extent_exact() 382 if (maxlen < minlen) { in xfs_rtallocate_extent_exact() 394 if (maxlen < minlen) { in xfs_rtallocate_extent_exact() 424 xfs_extlen_t minlen, /* minimum length to allocate */ in xfs_rtallocate_extent_near() argument 441 ASSERT(minlen % prod == 0 && maxlen % prod == 0); in xfs_rtallocate_extent_near() [all …]
|
D | xfs_discard.c | 28 xfs_daddr_t minlen, in xfs_trim_extents() argument 92 if (dlen < minlen) { in xfs_trim_extents() 158 xfs_daddr_t start, end, minlen; in xfs_ioc_trim() local 178 range.minlen = max_t(u64, granularity, range.minlen); in xfs_ioc_trim() 179 minlen = BTOBB(range.minlen); in xfs_ioc_trim() 188 range.minlen > XFS_FSB_TO_B(mp, mp->m_ag_max_usable) || in xfs_ioc_trim() 202 error = xfs_trim_extents(mp, agno, start, end, minlen, in xfs_ioc_trim()
|
D | xfs_filestream.c | 103 xfs_extlen_t minlen) in xfs_filestream_pick_ag() argument 160 if (((minlen && longest >= minlen) || in xfs_filestream_pick_ag() 161 (!minlen && pag->pagf_freeblks >= minfree)) && in xfs_filestream_pick_ag() 327 xfs_extlen_t minlen = ap->length; in xfs_filestream_new_ag() local 351 err = xfs_filestream_pick_ag(pip, startag, agp, flags, minlen); in xfs_filestream_new_ag()
|
D | xfs_extent_busy.c | 338 while (rbp && flen >= args->minlen) { in xfs_extent_busy_trim() 465 } else if (bbno - fbno >= args->minlen) { in xfs_extent_busy_trim()
|
D | xfs_rtalloc.h | 43 xfs_extlen_t minlen, /* minimum length to allocate */
|
D | xfs_bmap_util.c | 84 xfs_extlen_t minlen = mp->m_sb.sb_rextsize; in xfs_bmap_rtalloc() local 108 minlen += orig_offset - ap->offset; in xfs_bmap_rtalloc() 168 raminlen = max_t(xfs_extlen_t, 1, minlen / mp->m_sb.sb_rextsize); in xfs_bmap_rtalloc() 200 minlen = align = mp->m_sb.sb_rextsize; in xfs_bmap_rtalloc()
|
/fs/jfs/ |
D | jfs_discard.c | 71 u64 start, end, minlen; in jfs_ioc_trim() local 82 minlen = range->minlen >> sb->s_blocksize_bits; in jfs_ioc_trim() 83 if (minlen == 0) in jfs_ioc_trim() 84 minlen = 1; in jfs_ioc_trim() 86 if (minlen > bmp->db_agsize || in jfs_ioc_trim() 100 trimmed += dbDiscardAG(ip, agno, minlen); in jfs_ioc_trim()
|
D | ioctl.c | 129 range.minlen = max_t(unsigned int, range.minlen, in jfs_ioctl()
|
D | jfs_dmap.h | 301 extern s64 dbDiscardAG(struct inode *ip, int agno, s64 minlen);
|
/fs/xfs/libxfs/ |
D | xfs_alloc.c | 299 if (args->alignment > 1 && len >= args->minlen) { in xfs_alloc_compute_aligned() 398 ASSERT(rlen >= args->minlen); in xfs_alloc_fix_len() 411 if ((int)rlen < (int)args->minlen) in xfs_alloc_fix_len() 413 ASSERT(rlen >= args->minlen && rlen <= args->maxlen); in xfs_alloc_fix_len() 848 if (len < args->minlen) { in xfs_alloc_cur_check() 863 if (lena < args->minlen) in xfs_alloc_cur_check() 868 ASSERT(args->len >= args->minlen); in xfs_alloc_cur_check() 1055 if (args->minlen != 1 || args->alignment != 1 || in xfs_alloc_ag_vextent_small() 1104 if (flen < args->minlen) { in xfs_alloc_ag_vextent_small() 1134 ASSERT(args->minlen > 0); in xfs_alloc_ag_vextent() [all …]
|
D | xfs_bmap.c | 710 args.minlen = args.maxlen = args.prod = 1; in xfs_bmap_extents_to_btree() 867 args.minlen = args.maxlen = args.prod = 1; in xfs_bmap_local_to_extents() 3269 if (notinit || *blen < ap->minlen) { in xfs_bmap_select_minlen() 3274 args->minlen = ap->minlen; in xfs_bmap_select_minlen() 3280 args->minlen = *blen; in xfs_bmap_select_minlen() 3286 args->minlen = args->maxlen; in xfs_bmap_select_minlen() 3516 if (ap->minlen != 1) { in xfs_bmap_exact_minlen_extent_alloc() 3546 args.minlen = args.maxlen = ap->minlen; in xfs_bmap_exact_minlen_extent_alloc() 3655 args.total = args.minlen = ap->minlen; in xfs_bmap_btalloc() 3659 args.minlen = ap->minlen; in xfs_bmap_btalloc() [all …]
|
D | xfs_alloc.h | 60 xfs_extlen_t minlen; /* minimum size of extent */ member
|
D | xfs_bmap.h | 37 xfs_extlen_t minlen; /* minimum allocation size (blocks) */ member
|
/fs/btrfs/ |
D | free-space-cache.h | 135 u64 *trimmed, u64 start, u64 end, u64 minlen); 137 u64 *trimmed, u64 start, u64 end, u64 minlen, 140 u64 *trimmed, u64 start, u64 end, u64 minlen,
|
D | discard.c | 465 u64 minlen = 0; in btrfs_discard_workfn() local 480 minlen = discard_minlen[discard_index]; in btrfs_discard_workfn() 497 minlen, maxlen, true); in btrfs_discard_workfn() 503 minlen, true); in btrfs_discard_workfn()
|
D | free-space-cache.c | 3559 u64 *total_trimmed, u64 start, u64 end, u64 minlen, in trim_no_bitmap() argument 3580 if (ctl->free_space < minlen) in trim_no_bitmap() 3606 if (bytes < minlen) { in trim_no_bitmap() 3631 if (bytes < minlen) { in trim_no_bitmap() 3725 u64 *total_trimmed, u64 start, u64 end, u64 minlen, in trim_bitmaps() argument 3745 if (ctl->free_space < minlen) { in trim_bitmaps() 3762 if (!entry || (async && minlen && start == offset && in trim_bitmaps() 3779 bytes = minlen; in trim_bitmaps() 3786 if (ret2 && minlen <= BTRFS_ASYNC_DISCARD_MIN_FILTER) in trim_bitmaps() 3807 if (bytes < minlen || (async && maxlen && bytes > maxlen)) { in trim_bitmaps() [all …]
|
/fs/hpfs/ |
D | alloc.c | 503 …, secno start, unsigned len, secno limit_start, secno limit_end, unsigned minlen, unsigned *result) in do_trim() argument 516 if (end - start < minlen) in do_trim() 525 int hpfs_trim_fs(struct super_block *s, u64 start, u64 end, u64 minlen, unsigned *result) in hpfs_trim_fs() argument 538 if (minlen > 0x4000) in hpfs_trim_fs() 552 err = do_trim(s, sbi->sb_dirband_start + idx * 4, len * 4, start, end, minlen, result); in hpfs_trim_fs() 573 err = do_trim(s, (start_bmp << 14) + idx, len, start, end, minlen, result); in hpfs_trim_fs()
|
/fs/fat/ |
D | fatent.c | 769 u64 ent_start, ent_end, minlen, trimmed = 0; in fat_trim_fs() local 781 minlen = range->minlen >> sbi->cluster_bits; in fat_trim_fs() 803 if (free >= minlen) { in fat_trim_fs() 830 if (free && free >= minlen) { in fat_trim_fs()
|
D | file.c | 143 range.minlen = max_t(unsigned int, range.minlen, in fat_ioctl_fitrim()
|
/fs/nilfs2/ |
D | sufile.c | 1068 u64 segnum, segnum_end, minlen, len, max_blocks, ndiscarded = 0; in nilfs_sufile_trim_fs() local 1075 minlen = range->minlen >> nilfs->ns_blocksize_bits; in nilfs_sufile_trim_fs() 1142 if (nblocks >= minlen) { in nilfs_sufile_trim_fs() 1178 if (nblocks >= minlen) { in nilfs_sufile_trim_fs()
|
/fs/gfs2/ |
D | rgrp.c | 1324 const struct gfs2_bitmap *bi, unsigned minlen, u64 *ptrimmed) in gfs2_rgrp_send_discards() argument 1354 if (nr_blks >= minlen) { in gfs2_rgrp_send_discards() 1372 if (nr_blks >= minlen) { in gfs2_rgrp_send_discards() 1410 u64 start, end, minlen; in gfs2_fitrim() local 1432 minlen = max_t(u64, r.minlen, sdp->sd_sb.sb_bsize); in gfs2_fitrim() 1433 minlen = max_t(u64, minlen, in gfs2_fitrim() 1436 if (end <= start || minlen > sdp->sd_max_rg_data) in gfs2_fitrim() 1459 rgd->rd_data0, NULL, bi, minlen, in gfs2_fitrim()
|
D | rgrp.h | 74 const struct gfs2_bitmap *bi, unsigned minlen, u64 *ptrimmed);
|
/fs/ntfs3/ |
D | bitmap.c | 1420 CLST minlen = bytes_to_cluster(sbi, range->minlen); in ntfs_trim_fs() local 1427 if (!minlen) in ntfs_trim_fs() 1428 minlen = 1; in ntfs_trim_fs() 1468 if (len >= minlen) { in ntfs_trim_fs() 1480 if (len >= minlen) { in ntfs_trim_fs()
|
/fs/exfat/ |
D | file.c | 368 range.minlen = max_t(unsigned int, range.minlen, in exfat_ioctl_fitrim()
|
D | balloc.c | 283 trim_minlen = range->minlen >> sbi->cluster_size_bits; in exfat_trim_fs()
|