Re: [RFC] [PATCH] Btrfs: rework can_nocow_odirect

2012-10-02 Thread Wade Cline
Hi Josef, This patch is causing fragmentation with O_DIRECT on preallocated extents located -after- the first write to the preallocated extent. This happens regardless of nodatacow/autodefrag mount options. Thank you, Wade On 10/01/2012 12:00 PM, Josef Bacik wrote: I need everybody to go

[RFC] [PATCH] Btrfs: rework can_nocow_odirect

2012-10-01 Thread Josef Bacik
I need everybody to go over this with a fine toothed comb since it is a pretty big change. I think it is right and it seems to come out right, but if it's not it will mean we screw up O_DIRECT on snapshotted files with preallocated extents, so please, make sure it is correct :). --- Subject: