projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5dc67d0
)
Btrfs: fix check for changed extent in is_extent_unchanged
author
Alexander Block
<ablock84@googlemail.com>
Wed, 1 Aug 2012 10:46:05 +0000
(12:46 +0200)
committer
Chris Mason
<chris.mason@fusionio.com>
Mon, 1 Oct 2012 19:18:57 +0000
(15:18 -0400)
The previous check was working fine, but this check should be
easier to read. Also, we could theoritically have some exotic
bugs with the previous checks.
Signed-off-by: Alexander Block <ablock84@googlemail.com>
fs/btrfs/send.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/btrfs/send.c
b/fs/btrfs/send.c
index cfbe987f854bddeef04d3ff774c4562f1a404b78..35222d5420f61ff64f1e13ac0a92a2c4b8894c76 100644
(file)
--- a/
fs/btrfs/send.c
+++ b/
fs/btrfs/send.c
@@
-3819,8
+3819,8
@@
static int is_extent_unchanged(struct send_ctx *sctx,
/*
* Check if we have the same extent.
*/
- if (left_disknr
+ left_offset_fixed !=
-
right_disknr +
right_offset) {
+ if (left_disknr
!= right_disknr ||
+
left_offset_fixed !=
right_offset) {
ret = 0;
goto out;
}