[Cluster-devel] [PATCH v2 6/8] dlm: use seq_open_data in table_openN functions

2018-08-20 Thread Rasmus Villemoes
Using the seq_open_data helper simplifies these to oneliners. Signed-off-by: Rasmus Villemoes --- Depends on 1/8 introducing seq_open_data. fs/dlm/debug_fs.c | 44 1 file changed, 4 insertions(+), 40 deletions(-) diff --git a/fs/dlm/debug_fs.c b/fs

[Cluster-devel] [PATCH v2 1/8] seq_file: introduce seq_open_data helper

2018-08-20 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 --- v2: - Fix some copy-pastos spotted by Andreas. - Ensure everybody hit by an e