And, as mentioned earlier, it is ok to use REQ_ATOMIC method on anThanks, John for addressing the queries. It would be helpful to include
unwritten extent.
I am guessing this is kept intentional?Yes
this information in the commit message as well then right? Otherwise
IMO, the original commit message looks incomplete.
Maybe we can add this too?
=========================
This patch adds CoW based atomic write support which will be used as a
SW fallback in following scenarios:
- All append write scenarios.
- Any new writes on the region containing holes.
- Writes to any misaligned regions
- Writes to discontiguous extents.
<original commit msg snip>
=========================
In cases of an atomic write covering misaligned or discontiguous disk
blocks, we will use a CoW-based method to issue the atomic write.