summaryrefslogtreecommitdiff
path: root/fs/utimes.c
diff options
context:
space:
mode:
authorAnand Jain <anand.jain@oracle.com>2022-08-12 13:32:18 +0300
committerDavid Sterba <dsterba@suse.com>2022-08-23 23:15:21 +0300
commit59a3991984dbc1fc47e5651a265c5200bd85464e (patch)
tree3df26cfd92d8cf749c2a972a1ad8f0c8e7f9f31c /fs/utimes.c
parent47bf225a8d2cccb15f7e8d4a1ed9b757dd86afd7 (diff)
downloadlinux-59a3991984dbc1fc47e5651a265c5200bd85464e.tar.xz
btrfs: replace: drop assert for suspended replace
If the filesystem mounts with the replace-operation in a suspended state and try to cancel the suspended replace-operation, we hit the assert. The assert came from the commit fe97e2e173af ("btrfs: dev-replace: replace's scrub must not be running in suspended state") that was actually not required. So just remove it. $ mount /dev/sda5 /btrfs BTRFS info (device sda5): cannot continue dev_replace, tgtdev is missing BTRFS info (device sda5): you may cancel the operation after 'mount -o degraded' $ mount -o degraded /dev/sda5 /btrfs <-- success. $ btrfs replace cancel /btrfs kernel: assertion failed: ret != -ENOTCONN, in fs/btrfs/dev-replace.c:1131 kernel: ------------[ cut here ]------------ kernel: kernel BUG at fs/btrfs/ctree.h:3750! After the patch: $ btrfs replace cancel /btrfs BTRFS info (device sda5): suspended dev_replace from /dev/sda5 (devid 1) to <missing disk> canceled Fixes: fe97e2e173af ("btrfs: dev-replace: replace's scrub must not be running in suspended state") CC: stable@vger.kernel.org # 5.0+ Signed-off-by: Anand Jain <anand.jain@oracle.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/utimes.c')
0 files changed, 0 insertions, 0 deletions