diff options
author | Peng Tao <tao.peng@primarydata.com> | 2015-06-23 19:51:57 +0800 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2015-06-24 10:17:37 -0400 |
commit | 8733408d6ed713d080c325262d7b51a780136d41 (patch) | |
tree | b9ea8f53679041ac09ce05f6bfd43d6d61c40c7e /fs/nfs/nfs42proc.c | |
parent | 1b4a4bd82c308aed36f13fff4beb33d3840cfa0e (diff) | |
download | op-kernel-dev-8733408d6ed713d080c325262d7b51a780136d41.zip op-kernel-dev-8733408d6ed713d080c325262d7b51a780136d41.tar.gz |
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.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/nfs/nfs42proc.c b/fs/nfs/nfs42proc.c index a053041..ee02483 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); |