diff options
author | 2014-09-10 15:44:18 -0400 | |
---|---|---|
committer | 2015-02-03 11:06:43 -0800 | |
commit | 2176bf4269a37a7742230ed6c91668241bfe1b2b (patch) | |
tree | 36481b82bcb62667865f5b784580c656125b823c /fs/nfs/pagelist.c | |
parent | nfs/filelayout: use pnfs_error_mark_layout_for_return (diff) | |
download | linux-2176bf4269a37a7742230ed6c91668241bfe1b2b.tar.gz linux-2176bf4269a37a7742230ed6c91668241bfe1b2b.tar.bz2 linux-2176bf4269a37a7742230ed6c91668241bfe1b2b.zip |
nfs: introduce pg_cleanup op for pgio descriptors
Add a new operation to nfs_pageio_ops that is called on nfs_pageio_complete.
Signed-off-by: Weston Andros Adamson <dros@primarydata.com>
Diffstat (limited to 'fs/nfs/pagelist.c')
-rw-r--r-- | fs/nfs/pagelist.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/nfs/pagelist.c b/fs/nfs/pagelist.c index c4d175829880..1c031878c752 100644 --- a/fs/nfs/pagelist.c +++ b/fs/nfs/pagelist.c @@ -1050,7 +1050,7 @@ int nfs_pageio_resend(struct nfs_pageio_descriptor *desc, EXPORT_SYMBOL_GPL(nfs_pageio_resend); /** - * nfs_pageio_complete - Complete I/O on an nfs_pageio_descriptor + * nfs_pageio_complete - Complete I/O then cleanup an nfs_pageio_descriptor * @desc: pointer to io descriptor */ void nfs_pageio_complete(struct nfs_pageio_descriptor *desc) @@ -1062,6 +1062,9 @@ void nfs_pageio_complete(struct nfs_pageio_descriptor *desc) if (!nfs_do_recoalesce(desc)) break; } + + if (desc->pg_ops->pg_cleanup) + desc->pg_ops->pg_cleanup(desc); } /** |