aboutsummaryrefslogtreecommitdiff
path: root/tools/lguest
diff options
context:
space:
mode:
authorMiao Xie2014-02-27 13:58:05 +0800
committerJosef Bacik2014-03-10 15:17:00 -0400
commit7b2b70851f862b68714f357d2926adbb6c574fdd (patch)
treeb1f0715cb4140c4ddd63bf3c6e70f1900c8b9acf /tools/lguest
parentc933956ddf80bc455d33cbcf39d35d935daf45a9 (diff)
Btrfs: fix preallocate vs double nocow write
We can not release the reserved metadata space for the first write if we find the write position is pre-allocated. Because the kernel might write the data on the disk before we do the second write but after the can-nocow check, if we release the space for the first write, we might fail to update the metadata because of no space. Fix this problem by end nocow write if there is dirty data in the range whose space is pre-allocated. Signed-off-by: Miao Xie <miaox@cn.fujitsu.com> Signed-off-by: Josef Bacik <jbacik@fb.com>
Diffstat (limited to 'tools/lguest')
0 files changed, 0 insertions, 0 deletions