summaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs42proc.c
diff options
context:
space:
mode:
authorPeng Tao <tao.peng@primarydata.com>2015-06-23 13:51:57 +0200
committerTrond Myklebust <trond.myklebust@primarydata.com>2015-06-24 16:17:37 +0200
commit8733408d6ed713d080c325262d7b51a780136d41 (patch)
treeb9ea8f53679041ac09ce05f6bfd43d6d61c40c7e /fs/nfs/nfs42proc.c
parentpNFS: fill in nfs42_layoutstat_ops (diff)
downloadlinux-8733408d6ed713d080c325262d7b51a780136d41.tar.xz
linux-8733408d6ed713d080c325262d7b51a780136d41.zip
pnfs: add pnfs_report_layoutstat helper function
Reviewed-by: Jeff Layton <jeff.layton@primarydata.com> Signed-off-by: Peng Tao <tao.peng@primarydata.com> Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs/nfs/nfs42proc.c')
-rw-r--r--fs/nfs/nfs42proc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/nfs/nfs42proc.c b/fs/nfs/nfs42proc.c
index a0530418255f..ee0248340a42 100644
--- a/fs/nfs/nfs42proc.c
+++ b/fs/nfs/nfs42proc.c
@@ -198,6 +198,10 @@ static void
nfs42_layoutstat_release(void *calldata)
{
struct nfs42_layoutstat_data *data = calldata;
+ struct nfs_server *nfss = NFS_SERVER(data->args.inode);
+
+ if (nfss->pnfs_curr_ld->cleanup_layoutstats)
+ nfss->pnfs_curr_ld->cleanup_layoutstats(data);
pnfs_put_layout_hdr(NFS_I(data->args.inode)->layout);
nfs_iput_and_deactive(data->inode);