Robbie Ko 5909ca110b btrfs: fix page leaks after failure to lock page for delalloc
When locking pages for delalloc, we check if it's dirty and mapping still
matches. If it does not match, we need to return -EAGAIN and release all
pages. Only the current page was put though, iterate over all the
remaining pages too.

CC: stable@vger.kernel.org # 4.14+
Reviewed-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Robbie Ko <robbieko@synology.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2020-07-21 22:08:53 +02:00
..
2020-03-23 17:02:00 +01:00
2020-05-25 11:25:36 +02:00
2020-05-25 11:25:37 +02:00
2019-11-18 23:43:44 +01:00
2020-07-09 19:57:58 +02:00
2020-03-23 17:01:43 +01:00
2020-01-20 16:40:55 +01:00
2020-05-25 11:25:37 +02:00
2019-11-18 17:51:51 +01:00
2020-05-25 11:25:37 +02:00
2020-05-25 11:25:36 +02:00
2020-05-25 11:25:36 +02:00
2020-05-25 11:25:37 +02:00
2020-05-25 11:25:36 +02:00