Re: [PATCH 3/3] xfs_repair: rebuild block mappings from rmapbt data

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

 



On Thu, Mar 14, 2024 at 04:56:07PM -0700, Darrick J. Wong wrote:
> On Wed, Mar 13, 2024 at 06:59:54PM -0700, Christoph Hellwig wrote:
> > > +#define min_t(type, x, y) ( ((type)(x)) > ((type)(y)) ? ((type)(y)) : ((type)(x)) )
> > 
> > Should this really be a hidden in a .c file in repair vs in a common
> > header where we can use it everywhere?
> 
> Eh, yeah, I'll move it to libfrog/util.h.  I'll even use the one that's
> in libxfs_priv.h.
> 
> #define min_t(type,x,y) \
> 	({ type __x = (x); type __y = (y); __x < __y ? __x: __y; })

Yes, that should already be included or easily includable.





[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