mirror of
https://git.proxmox.com/git/mirror_zfs
synced 2025-04-29 17:21:24 +00:00
Return boolean_t in inline functions of lib/libspl/include/sys/uio.h
The inline functions zfs_dio_offset_aligned(), zfs_dio_size_aligned() and zfs_dio_aligned() are declared as boolean_t but return the bool type. This fixes the build of FreeBSD. Reviewed-by: Alexander Motin <mav@FreeBSD.org> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Martin Matuska <mm@FreeBSD.org> Closes #16613
This commit is contained in:
parent
fc9608e2e6
commit
84f44ec07f
@ -92,20 +92,20 @@ zfs_dio_page_aligned(void *buf)
|
||||
static inline boolean_t
|
||||
zfs_dio_offset_aligned(uint64_t offset, uint64_t blksz)
|
||||
{
|
||||
return (IS_P2ALIGNED(offset, blksz));
|
||||
return ((IS_P2ALIGNED(offset, blksz)) ? B_TRUE : B_FALSE);
|
||||
}
|
||||
|
||||
static inline boolean_t
|
||||
zfs_dio_size_aligned(uint64_t size, uint64_t blksz)
|
||||
{
|
||||
return ((size % blksz) == 0);
|
||||
return (((size % blksz) == 0) ? B_TRUE : B_FALSE);
|
||||
}
|
||||
|
||||
static inline boolean_t
|
||||
zfs_dio_aligned(uint64_t offset, uint64_t size, uint64_t blksz)
|
||||
{
|
||||
return (zfs_dio_offset_aligned(offset, blksz) &&
|
||||
zfs_dio_size_aligned(size, blksz));
|
||||
return ((zfs_dio_offset_aligned(offset, blksz) &&
|
||||
zfs_dio_size_aligned(size, blksz)) ? B_TRUE : B_FALSE);
|
||||
}
|
||||
|
||||
static inline void
|
||||
|
Loading…
Reference in New Issue
Block a user