summaryrefslogtreecommitdiff
path: root/fs/btrfs/super.c
diff options
context:
space:
mode:
authorAnand Jain <anand.jain@oracle.com>2018-07-03 17:07:23 +0800
committerDavid Sterba <dsterba@suse.com>2018-08-06 13:12:45 +0200
commitb4993e64f78a9605b45252fa9ba385c88a1f4ce9 (patch)
tree8d83936371abc9a086c1b434d920467c9fb46248 /fs/btrfs/super.c
parent340f1aa27f367e0c3d2662d44f356b05087fea05 (diff)
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: Anand Jain <anand.jain@oracle.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/super.c')
0 files changed, 0 insertions, 0 deletions