Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b4993e64 authored by Anand Jain's avatar Anand Jain Committed by David Sterba
Browse files

btrfs: fix in-memory value of total_devices after seed device deletion



In case of deleting the seed device the %cur_devices (seed) and the
%fs_devices (parent) are different. Now, as the parent
fs_devices::total_devices also maintains the total number of devices
including the seed device, so decrement its in-memory value for the
successful seed delete. We are already updating its corresponding
on-disk btrfs_super_block::number_devices value.

Signed-off-by: default avatarAnand Jain <anand.jain@oracle.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 340f1aa2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment