relay: make create_buf_file and remove_buf_file callbacks mandatory
authorJani Nikula <jani.nikula@intel.com>
Wed, 16 Dec 2020 04:45:53 +0000 (20:45 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 16 Dec 2020 06:46:18 +0000 (22:46 -0800)
commit371e03880d9d34534d3eafd2a7581042be598e39
tree3f65ecc330a5b657ccf18fa540d5c79866f8c492
parent6f8f25440d791855e8b6a26cd2bff9d738468416
relay: make create_buf_file and remove_buf_file callbacks mandatory

All clients provide create_buf_file and remove_buf_file callbacks, and
they're required for relay to make sense.  There is no point in them being
optional.

Also document whether each callback is mandatory/optional.

Link: https://lkml.kernel.org/r/88003c1527386b93036e286e7917f1e33aec84ac.1606153547.git.jani.nikula@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Suggested-by: Christoph Hellwig <hch@infradead.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Kalle Valo <kvalo@codeaurora.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/relay.h
kernel/relay.c