commit | 776eaddb2cef366b16dac8857899dbb4cc5dfdb1 | [log] [tgz] |
---|---|---|
author | Kent Overstreet <kent.overstreet@gmail.com> | Tue Oct 12 14:25:13 2021 -0400 |
committer | Kent Overstreet <kent.overstreet@linux.dev> | Sun Oct 22 17:09:13 2023 -0400 |
tree | c127b190ca5eb942cd7570a88e779235cf819e08 | |
parent | 395576807555fa9ffb2ae038cae1fe2699f85b89 [diff] |
bcachefs: Fix deletion in __bch2_dev_usrdata_drop() With snapshots, __bch2_dev_usr_data_drop() now uses an ALL_SNAPSHOTS iterator, which isn't an extent iterator - meaning we shouldn't be inserting whiteouts with nonzero size to delete. This fixes a bug where we go RO because we tried to insert an invalid key in the device remove path. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>