proc: add a proc_create_reg helper
authorChristoph Hellwig <hch@lst.de>
Tue, 24 Apr 2018 15:08:36 +0000 (17:08 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 16 May 2018 05:23:35 +0000 (07:23 +0200)
commit7aed53d1dfd14d468e065212ce45068e2b50c1fa
tree4fc1d297c3c308d37222e350f0a54f7bb100045e
parent61172eaea1adf64a77e563b0cb30d7ee88d9aa80
proc: add a proc_create_reg helper

Common code for creating a regular file.  Factor out of proc_create_data, to
be reused by other functions soon.

Signed-off-by: Christoph Hellwig <hch@lst.de>
fs/proc/generic.c
fs/proc/internal.h