LU-10602 utils: fix file heat support
Change the LL_IOC_HEAT_SET ioctl number assignment to reduce the
number of different values used, since we are running out. Use
a __u64 as the IOC struct argument instead of a "long" since that
is what is actually passed, and it avoids being CPU-dependent.
Move the LU_HEAT_FLAG_* values into an enum to avoid a generic
"flags" argument in the code. This makes it clear what is passed.
Clean up code style for lfs_heat_get() and lfs_heat_set().
Fixes:
ae723cf8161f ("LU-10602 llite: add file heat support")
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: If06212d2d62d085a2104cf54ae9a10e512eb2efd
Reviewed-on: https://review.whamcloud.com/34757
Reviewed-by: Wang Shilong <wshilong@ddn.com>
Tested-by: Jenkins
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Yingjin Qian <qian@ddn.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>