Code Review
/
kvmfornfv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Upgrade to 4.4.50-rt62
[kvmfornfv.git]
/
kernel
/
fs
/
btrfs
/
ctree.c
diff --git
a/kernel/fs/btrfs/ctree.c
b/kernel/fs/btrfs/ctree.c
index
5b8e235
..
0f2b7c6
100644
(file)
--- a/
kernel/fs/btrfs/ctree.c
+++ b/
kernel/fs/btrfs/ctree.c
@@
-1551,6
+1551,7
@@
noinline int btrfs_cow_block(struct btrfs_trans_handle *trans,
trans->transid, root->fs_info->generation);
if (!should_cow_block(trans, root, buf)) {
trans->transid, root->fs_info->generation);
if (!should_cow_block(trans, root, buf)) {
+ trans->dirty = true;
*cow_ret = buf;
return 0;
}
*cow_ret = buf;
return 0;
}
@@
-2773,8
+2774,10
@@
again:
* then we don't want to set the path blocking,
* so we test it here
*/
* then we don't want to set the path blocking,
* so we test it here
*/
- if (!should_cow_block(trans, root, b))
+ if (!should_cow_block(trans, root, b)) {
+ trans->dirty = true;
goto cow_done;
goto cow_done;
+ }
/*
* must have write locks on this node and the
/*
* must have write locks on this node and the