aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/bcache/btree.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md/bcache/btree.c')
-rw-r--r--drivers/md/bcache/btree.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/md/bcache/btree.c b/drivers/md/bcache/btree.c
index dc6e2be265b7..c36745e5986a 100644
--- a/drivers/md/bcache/btree.c
+++ b/drivers/md/bcache/btree.c
@@ -1817,7 +1817,8 @@ static bool fix_overlapping_extents(struct btree *b, struct bkey *insert,
1817 if (KEY_START(k) > KEY_START(insert) + sectors_found) 1817 if (KEY_START(k) > KEY_START(insert) + sectors_found)
1818 goto check_failed; 1818 goto check_failed;
1819 1819
1820 if (KEY_PTRS(replace_key) != KEY_PTRS(k)) 1820 if (KEY_PTRS(k) != KEY_PTRS(replace_key) ||
1821 KEY_DIRTY(k) != KEY_DIRTY(replace_key))
1821 goto check_failed; 1822 goto check_failed;
1822 1823
1823 /* skip past gen */ 1824 /* skip past gen */