]> git.baikalelectronics.ru Git - kernel.git/commit
nfsd: use DEFINE_SHOW_ATTRIBUTE to define nfsd_reply_cache_stats_fops
authorChenXiaoSong <chenxiaosong2@huawei.com>
Thu, 22 Sep 2022 16:31:55 +0000 (00:31 +0800)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 26 Sep 2022 18:02:50 +0000 (14:02 -0400)
commit0ef2559f2a32b11cd1a4abb25283b67e2090dcbe
treefde92667016f47841f89a1225fb8672c1bdc9fcc
parentcd4fa0326805253b92443dae5fa4ec9369dd75b7
nfsd: use DEFINE_SHOW_ATTRIBUTE to define nfsd_reply_cache_stats_fops

Use DEFINE_SHOW_ATTRIBUTE helper macro to simplify the code.

nfsd_net is converted from seq_file->file instead of seq_file->private in
nfsd_reply_cache_stats_show().

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