summaryrefslogtreecommitdiff
path: root/libbcachefs/io.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2020-02-22 16:21:32 -0500
committerKent Overstreet <kent.overstreet@gmail.com>2020-02-22 16:21:32 -0500
commit7c4552717f0546fe2670d6845a7c17c62fc2e44c (patch)
tree2b5840bcb637a98bba22ea4d10f62738c031ef5c /libbcachefs/io.c
parente0eb64c84601b2bbae055df809dd21f95f85c034 (diff)
Update bcachefs sources to 9017d85854 bcachefs: btree_ptr_v2
Diffstat (limited to 'libbcachefs/io.c')
-rw-r--r--libbcachefs/io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbcachefs/io.c b/libbcachefs/io.c
index ca83d79e..0d3366c2 100644
--- a/libbcachefs/io.c
+++ b/libbcachefs/io.c
@@ -942,7 +942,7 @@ static int bch2_write_extent(struct bch_write_op *op, struct write_point *wp,
if (bch2_csum_type_is_encryption(op->csum_type)) {
if (bversion_zero(version)) {
- version.lo = atomic64_inc_return(&c->key_version) + 1;
+ version.lo = atomic64_inc_return(&c->key_version);
} else {
crc.nonce = op->nonce;
op->nonce += src_len >> 9;