Re: [RFC][PATCH] Fix nodatacow check

2008-07-18 Thread Chris Mason
On Fri, 2008-07-18 at 10:13 +0800, Yan Zheng wrote: Hello, This patch fixes the nodatacow check. The new test function can always detect extents referenced by multiple snatshots. If a extent was allocated in recent two transactions and no snapshot happened in these two transactions, we can

[RFC][PATCH] Fix nodatacow check

2008-07-17 Thread Yan Zheng
Hello, This patch fixes the nodatacow check. The new test function can always detect extents referenced by multiple snatshots. If a extent was allocated in recent two transactions and no snapshot happened in these two transactions, we can always avoid cow. To check given extent's reference, the