+
+ btrfs_info(fs_info, "dev_replace from %s (devid %llu) to %s canceled",
+ btrfs_dev_name(src_device), src_device->devid,
+ rcu_str_deref(tgt_device->name));
The behavior is quite good.
Although I'm wondering why for @src_device we use btrfs_dev_name() but
rcu_str_deref() for @tgt_device?
Thanks for the comments.
My bad. In fact, I must use btrfs_dev_name() for tgt_device since
the tgt_device can be missing (-o degraded) when the user decides
to cancel.
Thanks, Anand
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html