/* This helper function checks if the inode mtime/ctime should be updated or not. If current values of the time-stamps are within the UBIFS inode time granularity, they are not updated. This is an optimization.  */
static int mctime_update_needed(const struct inode *inode, const struct timespec *now)
/* This helper function checks if the inode mtime/ctime should be updated or not. If current values of the time-stamps are within the UBIFS inode time granularity, they are not updated. This is an optimization.  */
static int mctime_update_needed(const struct inode *inode, const struct timespec *now)
{
	if (!timespec_equal(&inode->i_mtime, now) ||
	    !timespec_equal(&inode->i_ctime, now))
		return 1;
	return 0;
}