Lines Matching refs:range
371 struct fstrim_range range; in xfs_ioc_trim() local
389 if (copy_from_user(&range, urange, sizeof(range))) in xfs_ioc_trim()
392 range.minlen = max_t(u64, granularity, range.minlen); in xfs_ioc_trim()
393 minlen = BTOBB(range.minlen); in xfs_ioc_trim()
401 if (range.start >= XFS_FSB_TO_B(mp, mp->m_sb.sb_dblocks) || in xfs_ioc_trim()
402 range.minlen > XFS_FSB_TO_B(mp, mp->m_ag_max_usable) || in xfs_ioc_trim()
403 range.len < mp->m_sb.sb_blocksize) in xfs_ioc_trim()
406 start = BTOBB(range.start); in xfs_ioc_trim()
407 end = start + BTOBBT(range.len) - 1; in xfs_ioc_trim()
428 range.len = XFS_FSB_TO_B(mp, blocks_trimmed); in xfs_ioc_trim()
429 if (copy_to_user(urange, &range, sizeof(range))) in xfs_ioc_trim()