Re: [PATCH 1/3] xfs: make xfs btree stats less huge

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

 



On Mon, Dec 05, 2016 at 12:14:32PM +1100, Dave Chinner wrote:
> > > +	(offsetof(struct __xfsstats, member) / (int)sizeof(__uint32_t))
> > 
> > what's that int cast for?
> 
> Habit - prevents 64 bit division on 32 bit systems. But given this
> is evaluated at compile time, that doesn't matter. Will remove.

sizeof returns a size_t, which at least on Linux will always be
equivalent to an unsigned long, i.e. 32-bit on a 32-bit system, 64-bit
on a 64-bit system.
--
To unsubscribe from this list: send the line "unsubscribe linux-xfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[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