Skip to content

nfsd: use DEFINE_PROC_SHOW_ATTRIBUTE/DEFINE_SHOW_ATTRIBUTE to simplify the code

ChenXiaoSong linux-nfs lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5nfsd: use DEFINE_PROC_SHOW_ATTRIBUTE to define nfsd_proc_opsfs/nfsd/stats.c+2 -120 replies
2/5nfsd: use DEFINE_SHOW_ATTRIBUTE to define export_features_fops and supported_enctypes_fopsfs/nfsd/nfsctl.c+4 -240 replies
3/5nfsd: use DEFINE_SHOW_ATTRIBUTE to define client_info_fopsfs/nfsd/nfs4state.c+2 -121 reply
4/5nfsd: use DEFINE_SHOW_ATTRIBUTE to define nfsd_reply_cache_stats_fopsfs/nfsd/cache.h fs/nfsd/nfscache.c fs/nfsd/nfsctl.c+6 -180 replies
5/5nfsd: use DEFINE_SHOW_ATTRIBUTE to define nfsd_file_cache_stats_fopsfs/nfsd/filecache.c fs/nfsd/filecache.h fs/nfsd/nfsctl.c+4 -140 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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

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(-)
Signature · 1 line
2.31.1