[CIFS] factoring out common code in get_inode_info functions