nfsd: use DEFINE_SHOW_ATTRIBUTE to define export_features_fops and supported_enctypes...
authorChenXiaoSong <chenxiaosong2@huawei.com>
Thu, 22 Sep 2022 16:31:53 +0000 (00:31 +0800)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 26 Sep 2022 18:02:49 +0000 (14:02 -0400)
commit9beeaab8e05d353d709103cafa1941714b4d5d94
tree7572a1f1dae76824552452398b101b08e440d96f
parent0cfb0c4228a5c8e2ed2b58f8309b660b187cef02
nfsd: use DEFINE_SHOW_ATTRIBUTE to define export_features_fops and supported_enctypes_fops

Use DEFINE_SHOW_ATTRIBUTE helper macro to simplify the code.

Signed-off-by: ChenXiaoSong <chenxiaosong2@huawei.com>
[ cel: reduce line length ]
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/nfsctl.c