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

Commit ec95d491 authored by Anand Jain's avatar Anand Jain Committed by Chris Mason
Browse files

btrfs: device delete must be sysloged



as in the disk add patch, disk detached from the volume must be
recorded in the syslog as well for the same reason.

Signed-off-by: default avatarAnand Jain <Anand.Jain@oracle.com>
Reviewed-by: default avatarDavid Sterba <dsterba@suse.cz>
Signed-off-by: default avatarChris Mason <clm@fb.com>
parent 43d20761
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -2675,6 +2675,9 @@ static long btrfs_ioctl_rm_dev(struct file *file, void __user *arg)
	mutex_unlock(&root->fs_info->volume_mutex);
	mutex_unlock(&root->fs_info->volume_mutex);
	atomic_set(&root->fs_info->mutually_exclusive_operation_running, 0);
	atomic_set(&root->fs_info->mutually_exclusive_operation_running, 0);


	if (!ret)
		btrfs_info(root->fs_info, "disk deleted %s",vol_args->name);

out:
out:
	kfree(vol_args);
	kfree(vol_args);
err_drop:
err_drop: