Re: [PATCH v4 4/4] xfs: Convert xfs_attr_sf macros to inline functions

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

 



> >  
> > +/* total space in use */
> 
> Comment is redundant.
> 
> > +static inline int xfs_attr_sf_totsize(struct xfs_inode *dp)
> > +{
> > +	struct xfs_attr_shortform *sf =
> > +		(struct xfs_attr_shortform *)dp->i_afp->if_u1.if_data;
> > +
> > +	return be16_to_cpu(sf->hdr.totsize);
> > +}
> 
> If you have to break the declaration line like that, you
> may as well just do:
> 
> +	struct xfs_attr_shortform *sf;
> +
> +	sf = (struct xfs_attr_shortform *)dp->i_afp->if_u1.if_data;
> +	return be16_to_cpu(sf->hdr.totsize);
> 
> 
> Otherwise the patch looks fine.
> 
> Reviewed-by: Dave Chinner <dchinner@xxxxxxxxxx>

Fair enough, I'll re-send this patch, thanks for the review guys.


> 
> -- 
> Dave Chinner
> david@xxxxxxxxxxxxx
> 

-- 
Carlos




[Index of Archives]     [XFS Filesystem Development (older mail)]     [Linux Filesystem Development]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux RAID]     [Linux SCSI]


  Powered by Linux