summaryrefslogtreecommitdiff
path: root/drivers/video/fbdev/atmel_lcdfb.c
diff options
context:
space:
mode:
authorNikolay Borisov <nborisov@suse.com>2019-03-25 14:31:21 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-05-25 18:25:38 +0200
commitb327ff8a9b5767ce39db650d468fb124b48974a5 (patch)
treeb9ee7523429bd506bcfe3564396384c3193e539f /drivers/video/fbdev/atmel_lcdfb.c
parentc7af97a3fc048d1827b896c1cbbeb0a3841ed44a (diff)
btrfs: Honour FITRIM range constraints during free space trim
commit c2d1b3aae33605a61cbab445d8ae1c708ccd2698 upstream. Up until now trimming the freespace was done irrespective of what the arguments of the FITRIM ioctl were. For example fstrim's -o/-l arguments will be entirely ignored. Fix it by correctly handling those paramter. This requires breaking if the found freespace extent is after the end of the passed range as well as completing trim after trimming fstrim_range::len bytes. Fixes: 499f377f49f0 ("btrfs: iterate over unused chunk space in FITRIM") CC: stable@vger.kernel.org # 4.4+ Signed-off-by: Nikolay Borisov <nborisov@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/video/fbdev/atmel_lcdfb.c')
0 files changed, 0 insertions, 0 deletions