Re: [PATCH 14/14] Btrfs: don't do nocow check unless we have to

2016-03-25 Thread Liu Bo
On Fri, Mar 25, 2016 at 01:26:00PM -0400, Josef Bacik wrote: > Before we write into prealloc/nocow space we have to make sure that there are > no > references to the extents we are writing into, which means checking the extent > tree and csum tree in the case of nocow. So we don't want to do the

[PATCH 14/14] Btrfs: don't do nocow check unless we have to

2016-03-25 Thread Josef Bacik
Before we write into prealloc/nocow space we have to make sure that there are no references to the extents we are writing into, which means checking the extent tree and csum tree in the case of nocow. So we don't want to do the nocow dance unless we can't reserve data space, since it's a serious d