]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
seq_file: Add seq_vprintf function and export it
authorSteven Whitehouse <swhiteho@redhat.com>
Mon, 11 Jun 2012 12:16:35 +0000 (13:16 +0100)
committerSteven Whitehouse <swhiteho@redhat.com>
Mon, 11 Jun 2012 12:16:35 +0000 (13:16 +0100)
commita4808147dcf1ecf2f76212a78fd9692b3c112f47
tree18d51f7b18416f3483e58b23da87d5f239325107
parent90306c41dc3d8e5f12ecd0193dae99e0e7f6e896
seq_file: Add seq_vprintf function and export it

The existing seq_printf function is rewritten in terms of the new
seq_vprintf which is also exported to modules. This allows GFS2
(and potentially other seq_file users) to have a vprintf based
interface and to avoid an extra copy into a temporary buffer in
some cases.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Reported-by: Eric Dumazet <eric.dumazet@gmail.com>
Acked-by: Al Viro <viro@ZenIV.linux.org.uk>
fs/seq_file.c
include/linux/seq_file.h