Re: [RFC 1/5] seq_file: introduce seq_open_data helper

2018-03-01 Thread Andreas Dilger
On Mar 1, 2018, at 4:37 PM, Rasmus Villemoes wrote: > > There are quite a few callers of seq_open that could be simplified by > setting the ->private member via the seq_open call instead of fetching > file->private_data afterwards. > > Signed-off-by: Rasmus Villemoes > --- > I've just included

[RFC 1/5] seq_file: introduce seq_open_data helper

2018-03-01 Thread Rasmus Villemoes
There are quite a few callers of seq_open that could be simplified by setting the ->private member via the seq_open call instead of fetching file->private_data afterwards. Signed-off-by: Rasmus Villemoes --- I've just included a few examples of possible users of this helper, there are many more s