mm/slab.c: use __seq_open_private() instead of seq_open()
authorRob Jones <rob.jones@codethink.co.uk>
Thu, 9 Oct 2014 22:28:03 +0000 (15:28 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 10 Oct 2014 02:25:57 +0000 (22:25 -0400)
commitb208ce32927ac2c4bf14edebfb3197acd7673165
treefeb00d4c9c4f12aa6a5f14b6c3c74b6f6d95b4b3
parent703394c1005caeccaaf64945c1b6d6cc3af0cd1d
mm/slab.c: use __seq_open_private() instead of seq_open()

Using __seq_open_private() removes boilerplate code from slabstats_open()

The resultant code is shorter and easier to follow.

This patch does not change any functionality.

Signed-off-by: Rob Jones <rob.jones@codethink.co.uk>
Acked-by: Christoph Lameter <cl@linux.com>
Cc: Pekka Enberg <penberg@kernel.org>
Cc: David Rientjes <rientjes@google.com>
Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/slab.c