[lustre-devel] [PATCH v2 01/25] staging: lustre: libcfs: restore UMP handling
Dan Carpenter
dan.carpenter at oracle.com
Wed May 30 03:05:29 PDT 2018
On Tue, May 29, 2018 at 10:21:41AM -0400, James Simmons wrote:
> @@ -208,20 +222,52 @@ void cfs_cpt_unset_nodemask(struct cfs_cpt_table *cptab,
> void cfs_cpu_fini(void);
>
> #else /* !CONFIG_SMP */
> -struct cfs_cpt_table;
> -#define cfs_cpt_tab ((struct cfs_cpt_table *)NULL)
>
> -static inline cpumask_var_t *
> -cfs_cpt_cpumask(struct cfs_cpt_table *cptab, int cpt)
> +static inline void cfs_cpt_table_free(struct cfs_cpt_table *cptab)
> {
> - return NULL;
> + kfree(cptab);
> }
This should free cptab->ctb_cpumask?
regards,
dan carpenter
More information about the lustre-devel
mailing list