diff options
author | Peng Tao <tao.peng@primarydata.com> | 2015-06-25 18:19:32 +0800 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2015-06-26 14:01:37 -0400 |
commit | 865a7ecb2131a3ba26cc1d49daf18275375109f0 (patch) | |
tree | 67d77d73581a6529d787ec02efd8a6b86e692d54 /fs/nfs/pnfs.c | |
parent | 97ba375b5df43790aa82c256f7f16ee8eb95c272 (diff) | |
download | linux-stable-865a7ecb2131a3ba26cc1d49daf18275375109f0.tar.gz linux-stable-865a7ecb2131a3ba26cc1d49daf18275375109f0.tar.bz2 linux-stable-865a7ecb2131a3ba26cc1d49daf18275375109f0.zip |
nfs: provide pnfs_report_layoutstat when NFS42 is disabled
kbuild test robot reported:
fs/built-in.o: In function `pnfs_report_layoutstat':
>> (.text+0x151a1c): undefined reference to `nfs42_proc_layoutstats_generic'
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Peng Tao <tao.peng@primarydata.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs/nfs/pnfs.c')
-rw-r--r-- | fs/nfs/pnfs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/nfs/pnfs.c b/fs/nfs/pnfs.c index 5b5224341bcd..40bacebb5b97 100644 --- a/fs/nfs/pnfs.c +++ b/fs/nfs/pnfs.c @@ -2252,6 +2252,7 @@ struct nfs4_threshold *pnfs_mdsthreshold_alloc(void) return thp; } +#if IS_ENABLED(CONFIG_NFS_V4_2) int pnfs_report_layoutstat(struct inode *inode) { @@ -2306,3 +2307,4 @@ out_put: goto out; } EXPORT_SYMBOL_GPL(pnfs_report_layoutstat); +#endif |