mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 10:33:41 +02:00
bcachefs: fix REFLINK_P_MAY_UPDATE_OPTIONS
If we're doing a reflink copy of existing reflinked data, we may only set REFLINK_P_MAY_UPDATE_OPTIONS if it was set on the reflink pointer we're copying from. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
9caea9208f
commit
7098ba57c4
|
|
@ -711,7 +711,8 @@ s64 bch2_remap_range(struct bch_fs *c,
|
|||
SET_REFLINK_P_IDX(&dst_p->v, offset);
|
||||
|
||||
if (reflink_p_may_update_opts_field &&
|
||||
may_change_src_io_path_opts)
|
||||
may_change_src_io_path_opts &&
|
||||
REFLINK_P_MAY_UPDATE_OPTIONS(src_p.v))
|
||||
SET_REFLINK_P_MAY_UPDATE_OPTIONS(&dst_p->v, true);
|
||||
} else {
|
||||
BUG();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user