[PATCH 2/8] fs/configfs: dynamically allocate super_info

Johannes Thumshirn johannes.thumshirn at wdc.com
Mon Jun 15 07:23:39 PDT 2026


On 6/13/26 1:14 PM, Hannes Reinecke wrote:
> +		if (!refcount_inc_not_zero((&info->ref))) {
> +			pr_warn("%s: ns %llu already freed\n",
> +				__func__, ns_id);
> +			return ERR_PTR(-EBUSY);
> +		}
> +		pr_info("%s: use ns %llu\n",
> +			__func__, ns_id);
[...]
> +	pr_info("%s: alloc ns %llu\n", __func__, info->ns_id);
> +	return info;
> +}
> +
> +void configfs_put_super_info(struct configfs_super_info *info)
> +{
> +	if (refcount_dec_and_test(&info->ref)) {
> +		pr_info("%s: ns %llu free fs info\n",
> +			__func__, info->ns_id);

Left over debug prints?




More information about the Linux-nvme mailing list