vfs: seq_file: add helpers for data filling
authorMiklos Szeredi <mszeredi@suse.cz>
Mon, 21 Sep 2009 12:48:36 +0000 (14:48 +0200)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 24 Sep 2009 11:47:35 +0000 (07:47 -0400)
commitf84398068d9c2babe41500504ef247ae07081857
tree7306df97a7ee62f314f4db152fb2afceff156988
parentf9098980ffea9c749622ff8ddf3b6d5831902a46
vfs: seq_file: add helpers for data filling

Add two helpers that allow access to the seq_file's own buffer, but
hide the internal details of seq_files.

This allows easier implementation of special purpose filling
functions.  It also cleans up some existing functions which duplicated
the seq_file logic.

Make these inline functions in seq_file.h, as suggested by Al.

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Acked-by: Hugh Dickins <hugh.dickins@tiscali.co.uk>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/seq_file.c
include/linux/seq_file.h