cls: add check_link_inode

Signed-off-by: Yunchuan Wen <yunchuanwen@ubuntukylin.com>