fs/ocfs2/cluster/netdebug.c: use seq_open_private() not seq_open()
authorRob Jones <rob.jones@codethink.co.uk>
Thu, 9 Oct 2014 22:25:07 +0000 (15:25 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 10 Oct 2014 02:25:47 +0000 (22:25 -0400)
commitf32883384846e1d4aa941c60dd8adb44093359c6
tree26d4ee3341ea74efff74ed209dc4bf067c564e31
parent8f9ac032322b855ff9f578efcb5de891dcf85e9b
fs/ocfs2/cluster/netdebug.c: use seq_open_private() not seq_open()

Reduce boilerplate code by using seq_open_private() instead of seq_open()

Note that the code in and using sc_common_open() has been quite
extensively changed.  Not least because there was a latent memory leak in
the code as was: if sc_common_open() failed, the previously allocated
buffer was not freed.

Signed-off-by: Rob Jones <rob.jones@codethink.co.uk>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Mark Fasheh <mfasheh@suse.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ocfs2/cluster/netdebug.c