Make inode extra time fields updating logic more closer to linux.
Found using pjdfstest:
Testcase passed successfully.
Do not touch inode.h.
You can use inline functions to replace the macros and perhaps with some casting you can get over the issues.
These changes are wrong. Long discussion with bde@ showed we should not diverge from UFS here and the kernel won't handle anything different different than int32_t.
I think we not diverge from ufs so mach, you can check struct ufs2_dinode and ufs_time_t typedef, where ufs_time_t is int64_t.
While the ext_time_t approach is valid and it also consistent with UFS2, it is usually faster to use 32bit values so you *could* use casts. Either way is valid so I won't object.
You are replacing a macro so use inline here
use inline here, and move it nearer to the place where it will be used.: basically where the macro was.
I see: I was looking at ufs1_dinode while you are using ufs2_dinode.