Re: [PATCH 2/3] btrfs: don't attempt to trim devices that don't support it

2018-09-14 Thread David Sterba
On Thu, Sep 06, 2018 at 05:18:15PM -0400, je...@suse.com wrote: > From: Jeff Mahoney > > 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 wa

[PATCH 2/3] btrfs: don't attempt to trim devices that don't support it

2018-09-06 Thread jeffm
From: Jeff Mahoney 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 eac