Home
last modified time | relevance | path

Searched refs:minlen (Results 1 – 25 of 43) sorted by relevance

12

/fs/xfs/
Dxfs_rtalloc.c225 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 …]
Dxfs_discard.c28 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()
Dxfs_filestream.c103 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()
Dxfs_extent_busy.c338 while (rbp && flen >= args->minlen) { in xfs_extent_busy_trim()
465 } else if (bbno - fbno >= args->minlen) { in xfs_extent_busy_trim()
Dxfs_rtalloc.h43 xfs_extlen_t minlen, /* minimum length to allocate */
Dxfs_bmap_util.c84 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/
Djfs_discard.c71 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()
Dioctl.c129 range.minlen = max_t(unsigned int, range.minlen, in jfs_ioctl()
Djfs_dmap.h301 extern s64 dbDiscardAG(struct inode *ip, int agno, s64 minlen);
/fs/xfs/libxfs/
Dxfs_alloc.c299 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 …]
Dxfs_bmap.c710 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 …]
Dxfs_alloc.h60 xfs_extlen_t minlen; /* minimum size of extent */ member
Dxfs_bmap.h37 xfs_extlen_t minlen; /* minimum allocation size (blocks) */ member
/fs/btrfs/
Dfree-space-cache.h135 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,
Ddiscard.c465 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()
Dfree-space-cache.c3559 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/
Dalloc.c503 …, 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/
Dfatent.c769 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()
Dfile.c143 range.minlen = max_t(unsigned int, range.minlen, in fat_ioctl_fitrim()
/fs/nilfs2/
Dsufile.c1068 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/
Drgrp.c1324 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()
Drgrp.h74 const struct gfs2_bitmap *bi, unsigned minlen, u64 *ptrimmed);
/fs/ntfs3/
Dbitmap.c1420 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/
Dfile.c368 range.minlen = max_t(unsigned int, range.minlen, in exfat_ioctl_fitrim()
Dballoc.c283 trim_minlen = range->minlen >> sbi->cluster_size_bits; in exfat_trim_fs()

12