mbox series

[0/5] nfsd: use DEFINE_PROC_SHOW_ATTRIBUTE/DEFINE_SHOW_ATTRIBUTE to simplify the code

Message ID 20220922163156.2027440-1-chenxiaosong2@huawei.com (mailing list archive)
Headers show
Series nfsd: use DEFINE_PROC_SHOW_ATTRIBUTE/DEFINE_SHOW_ATTRIBUTE to simplify the code | expand

Message

ChenXiaoSong Sept. 22, 2022, 4:31 p.m. UTC
Use DEFINE_PROC_SHOW_ATTRIBUTE/DEFINE_SHOW_ATTRIBUTE helper macro to simplify the code.

No functional change.

ChenXiaoSong (5):
  nfsd: use DEFINE_PROC_SHOW_ATTRIBUTE to define nfsd_proc_ops
  nfsd: use DEFINE_SHOW_ATTRIBUTE to define export_features_fops and
    supported_enctypes_fops
  nfsd: use DEFINE_SHOW_ATTRIBUTE to define client_info_fops
  nfsd: use DEFINE_SHOW_ATTRIBUTE to define nfsd_reply_cache_stats_fops
  nfsd: use DEFINE_SHOW_ATTRIBUTE to define nfsd_file_cache_stats_fops

 fs/nfsd/cache.h     |  2 +-
 fs/nfsd/filecache.c |  7 +------
 fs/nfsd/filecache.h |  2 +-
 fs/nfsd/nfs4state.c | 14 ++------------
 fs/nfsd/nfscache.c  | 13 +++----------
 fs/nfsd/nfsctl.c    | 46 ++++++++-------------------------------------
 fs/nfsd/stats.c     | 14 ++------------
 7 files changed, 18 insertions(+), 80 deletions(-)