Make common helpers for seq_files that work with list_heads