mirror of
https://github.com/versity/scoutfs.git
synced 2026-02-08 03:30:46 +00:00
We have use of this little u64 comparison function in a few more places so let's make it a proper usable inline function in a header. Signed-off-by: Zach Brown <zab@versity.com>
12 lines
173 B
C
12 lines
173 B
C
#ifndef _SCOUTFS_CMP_H_
|
|
#define _SCOUTFS_CMP_H_
|
|
|
|
#include <linux/kernel.h>
|
|
|
|
static inline int scoutfs_cmp_u64s(u64 a, u64 b)
|
|
{
|
|
return a < b ? -1 : a > b ? 1 : 0;
|
|
}
|
|
|
|
#endif
|