Walczak posed a problem on the characterization of the mean curvature
functions of codimension-one foliations. An affirmative answer to this
problem is given here. As an application, we get a simpler proof of t
he topological characterization, due to the author, of codimension-one
foliations consisting of constant mean curvature hypersurfaces.