Re: [PATCH 7/8] xfs: remove struct xfs_attr_shortform

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

 



On Mon, Dec 18, 2023 at 05:30:38AM +0100, Christoph Hellwig wrote:
> On Mon, Dec 18, 2023 at 08:12:12AM +1100, Dave Chinner wrote:
> > > +struct xfs_attr_sf_hdr {	/* constant-structure header block */
> > > +	__be16	totsize;	/* total bytes in shortform list */
> > > +	__u8	count;	/* count of active entries */
> > > +	__u8	padding;
> > > +};
> > > +
> > > +struct xfs_attr_sf_entry {
> > > +	__u8	namelen;	/* actual length of name (no NULL) */
> > > +	__u8	valuelen;	/* actual length of value (no NULL) */
> > > +	__u8	flags;		/* flags bits (see xfs_attr_leaf.h) */
> > 
> > May as well correct the comment while you are touching this
> > structure; xfs_attr_leaf.h has not existed for a long time. Perhaps
> > just "/* XFS_ATTR_* flags */" as they are defined a little further
> > down this same file...
> 
> Yeah, I'll update it for the next version.

Also, could you add a comment somewhere that the ondisk format is one
struct xfs_attr_sf_hdr followed by a variable number of struct
xfs_attr_sf_entry objects?  That much was clear with the old structure,
even if the C linters can't make sense of it.

--D




[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