[PATCH] Btrfs: call filemap_fdatawrite twice for compression V2

2012-06-11 Thread Josef Bacik
I removed this in an earlier commit and I was wrong. Because compression can return from filemap_fdatawrite() without having actually set any of it's pages as writeback() it can make filemap_fdatawait() do essentially nothing, and then we won't find any ordered extents because they may not have

[PATCH] Btrfs: call filemap_fdatawrite twice for compression

2012-06-08 Thread Josef Bacik
I removed this in an earlier commit and I was wrong. Because compression can return from filemap_fdatawrite() without having actually set any of it's pages as writeback() it can make filemap_fdatawait() do essentially nothing, and then we won't find any ordered extents because they may not have