aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins/cyc_complexity_plugin.c
diff options
context:
space:
mode:
authorJeff Mahoney <[email protected]>2018-09-06 17:18:15 -0400
committerDavid Sterba <[email protected]>2018-10-15 17:23:32 +0200
commit0be88e367fd8fbdb45257615d691f4675dda062f (patch)
treed87c1ecf1e3ae1e2dba10c199a42105aadb43838 /scripts/gcc-plugins/cyc_complexity_plugin.c
parentd4e329de5e5e21594df2e0dd59da9acee71f133b (diff)
btrfs: don't attempt to trim devices that don't support it
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") CC: [email protected] # 4.4+ Signed-off-by: Jeff Mahoney <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions