[Ocfs2-devel] [PATCH 02/22] ocfs2: Add an incompat feature flag OCFS2_FEATURE_INCOMPAT_CLUSTERINFO

Joel Becker Joel.Becker at oracle.com
Fri Oct 8 17:15:54 PDT 2010


On Fri, Oct 08, 2010 at 04:26:48PM -0700, Sunil Mushran wrote:
> On 10/08/2010 04:11 PM, Mark Fasheh wrote:
> >>   /*00*/	__u8   ci_stack[OCFS2_STACK_LABEL_LEN];
> >> -	__le32 ci_reserved;
> >> +	union {
> >> +		__le32 ci_reserved;
> >> +		struct {
> >> +			__u8 ci_reserved1;
> >> +			__u8 ci_reserved2;
> >> +			__u8 ci_reserved3;
> >> +			__u8 ci_stackflags;
> >>      
> > Just curious, why stick ci_stackflags at the bottom of this structure?
> >
> > Wouldn't putting it at the top allow us to grow the field in the future...
> >
> > Otherwise the patch looks good to me.
> >    
> 
> Grow stackflags? Hmm... did not think of that.
> 
> I don't have a good reason for putting it at the end. Well,
> when I put it, I thought I did. Not anymore.

	Do it.  I don't know that we'll ever grow it, but having the
field at the beginning reads better too.

Joel

-- 

"Always give your best, never get discouraged, never be petty; always
 remember, others may hate you.  Those who hate you don't win unless
 you hate them.  And then you destroy yourself."
	- Richard M. Nixon

Joel Becker
Consulting Software Developer
Oracle
E-mail: joel.becker at oracle.com
Phone: (650) 506-8127



More information about the Ocfs2-devel mailing list