summaryrefslogtreecommitdiff
path: root/include/linux/nvme.h
diff options
context:
space:
mode:
authorChaitanya Kulkarni <chaitanya.kulkarni@wdc.com>2020-05-04 01:56:47 -0700
committerJens Axboe <axboe@kernel.dk>2020-05-09 16:18:36 -0600
commit3ecb5faa07c7fd33a3ce1a8340841aa368df7d43 (patch)
treef22e7eacbf502bc80f88400df726ae629917b3f9 /include/linux/nvme.h
parent87628e2851008d5b0e53859f6062988c6d66d7f5 (diff)
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