OSDN Git Service

proc: simplify proc_register calling conventions
authorChristoph Hellwig <hch@lst.de>
Tue, 24 Apr 2018 15:00:52 +0000 (17:00 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 16 May 2018 05:23:35 +0000 (07:23 +0200)
commit61172eaea1adf64a77e563b0cb30d7ee88d9aa80
tree07ca85b5531274c7bb4063ef391f2b8d2caaf057
parent04015e3fa235eba28cc058c73d7d346c1bcffee8
proc: simplify proc_register calling conventions

Return registered entry on success, return NULL on failure and free the
passed in entry.  Also expose it in internal.h as we'll start using it
in proc_net.c soon.

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