diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2021-03-19 23:37:24 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-23 00:08:56 +0300 |
commit | d361a26d02b97e3f3c0e1563b62a5f7c32ef2f04 (patch) | |
tree | fe6363119f6d320198492524b588e7cbf592d0d8 | |
parent | 7e6dbac98205ab32a6a924199f42e6496c4149db (diff) | |
download | linux-d361a26d02b97e3f3c0e1563b62a5f7c32ef2f04.tar.xz |
bcachefs: Don't overwrite snapshot field in bch2_cut_back()
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
-rw-r--r-- | fs/bcachefs/extents.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/extents.c b/fs/bcachefs/extents.c index 76b2459d8e73..2be49f443eb0 100644 --- a/fs/bcachefs/extents.c +++ b/fs/bcachefs/extents.c @@ -1183,7 +1183,7 @@ int bch2_cut_back_s(struct bpos where, struct bkey_s k) len = where.offset - bkey_start_offset(k.k); - k.k->p = where; + k.k->p.offset = where.offset; k.k->size = len; if (!len) { |