diff options
author | Miao Xie | 2014-02-27 13:58:05 +0800 |
---|---|---|
committer | Josef Bacik | 2014-03-10 15:17:00 -0400 |
commit | 7b2b70851f862b68714f357d2926adbb6c574fdd (patch) | |
tree | b1f0715cb4140c4ddd63bf3c6e70f1900c8b9acf /tools/lguest | |
parent | c933956ddf80bc455d33cbcf39d35d935daf45a9 (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