[PATCH 3.16.y-ckt 161/216] Btrfs: fix fs corruption on transaction abort if device supports discard

2015-01-12 Thread Luis Henriques
3.16.7-ckt4 -stable review patch. If anyone has any objections, please let me know. -- From: Filipe Manana commit 678886bdc6378c1cbd5072da2c5a3035000214e3 upstream. When we abort a transaction we iterate over all the ranges marked as dirty in fs_info->freed_extents[0] and

[PATCH 3.16.y-ckt 161/216] Btrfs: fix fs corruption on transaction abort if device supports discard

2015-01-12 Thread Luis Henriques
3.16.7-ckt4 -stable review patch. If anyone has any objections, please let me know. -- From: Filipe Manana fdman...@suse.com commit 678886bdc6378c1cbd5072da2c5a3035000214e3 upstream. When we abort a transaction we iterate over all the ranges marked as dirty in