[PATCH 4.5 089/101] Btrfs: fix file loss on log replay after renaming a file and fsync

2016-05-16 Thread Greg Kroah-Hartman
4.5-stable review patch. If anyone has any objections, please let me know. -- From: Filipe Manana commit 2be63d5ce929603d4e7cedabd9e992eb34a0ff95 upstream. We have two cases where we end up deleting a file at log replay time when we should not. For this to

[PATCH 4.5 089/101] Btrfs: fix file loss on log replay after renaming a file and fsync

2016-05-16 Thread Greg Kroah-Hartman
4.5-stable review patch. If anyone has any objections, please let me know. -- From: Filipe Manana commit 2be63d5ce929603d4e7cedabd9e992eb34a0ff95 upstream. We have two cases where we end up deleting a file at log replay time when we should not. For this to happen the file