diff options
author | Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com> | 2020-05-04 11:56:47 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-05-10 01:18:36 +0300 |
commit | 3ecb5faa07c7fd33a3ce1a8340841aa368df7d43 (patch) | |
tree | f22e7eacbf502bc80f88400df726ae629917b3f9 /include/linux/nvme.h | |
parent | 87628e2851008d5b0e53859f6062988c6d66d7f5 (diff) | |
download | linux-3ecb5faa07c7fd33a3ce1a8340841aa368df7d43.tar.xz |
nvmet: centralize port enable access for configfs
The configfs attributes which are supposed to set when port is disable
such as addr[addrfam|portid|traddr|treq|trsvcid|inline_data_size|trtype]
has repetitive check and generic error message printing.
This patch creates centralize helper to check and print an error
message that also accepts caller as a parameter. This makes error
message easy to parse for the user, removes the duplicate code and
makes it available for futures such scenarios.
Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/nvme.h')
0 files changed, 0 insertions, 0 deletions