Re: [PATCH] pnfs-obj: Uglify objio_segment allocation for the sake of the principle :-(

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Mar 13, 2012 at 08:44:26PM -0700, Boaz Harrosh wrote:
> +/*	This is the in memory structure of the objio_segment
> + *
> + *	struct __alloc_objio_segment {
> + *		struct objio_segment olseg;
> + *		struct ore_dev *ods[numdevs];
> + *		struct ore_comp	comps[numdevs];
> + *	} *aolseg;
> + *	NOTE: The code as above compiles and runs perfectly. It is elegant,
> + *	type safe and compact.

In which type system?  Not C99 - there variably-modified types are not
allowed as structure or union members...
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux