[PATCH 3/3] procfs: Replace use of the reduce() function