Lines Matching refs:range
157 struct fstrim_range range; in xfs_ioc_trim() local
175 if (copy_from_user(&range, urange, sizeof(range))) in xfs_ioc_trim()
178 range.minlen = max_t(u64, granularity, range.minlen); in xfs_ioc_trim()
179 minlen = BTOBB(range.minlen); in xfs_ioc_trim()
187 if (range.start >= XFS_FSB_TO_B(mp, mp->m_sb.sb_dblocks) || in xfs_ioc_trim()
188 range.minlen > XFS_FSB_TO_B(mp, mp->m_ag_max_usable) || in xfs_ioc_trim()
189 range.len < mp->m_sb.sb_blocksize) in xfs_ioc_trim()
192 start = BTOBB(range.start); in xfs_ioc_trim()
193 end = start + BTOBBT(range.len) - 1; in xfs_ioc_trim()
214 range.len = XFS_FSB_TO_B(mp, blocks_trimmed); in xfs_ioc_trim()
215 if (copy_to_user(urange, &range, sizeof(range))) in xfs_ioc_trim()