On Thu, Sep 06, 2018 at 05:18:15PM -0400, jeffm@xxxxxxxx wrote: > From: Jeff Mahoney <jeffm@xxxxxxxx> > > We check whether any device the file system is using supports discard > in the ioctl call, but then we attempt to trim free extents on every > device regardless of whether discard is supported. Due to the way > we mask off EOPNOTSUPP, we can end up issuing the trim operations > on each free range on devices that don't support it, just wasting time. > > Fixes: 499f377f49f08 (btrfs: iterate over unused chunk space in FITRIM) > Signed-off-by: Jeff Mahoney <jeffm@xxxxxxxx> Reviewed-by: David Sterba <dsterba@xxxxxxxx>
