[PATCH 2/8] fs/configfs: dynamically allocate super_info
Hannes Reinecke
hare at suse.de
Mon Jun 15 23:43:57 PDT 2026
On 6/15/26 16:23, Johannes Thumshirn wrote:
> 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?
>
It said RFC in the cover letter, after all.
But yeah, will be removing them for the next submission.
Cheers,
Hannes
--
Dr. Hannes Reinecke Kernel Storage Architect
hare at suse.de +49 911 74053 688
SUSE Software Solutions GmbH, Frankenstr. 146, 90461 Nürnberg
HRB 36809 (AG Nürnberg), GF: I. Totev, A. McDonald, W. Knoblich
More information about the Linux-nvme
mailing list