summaryrefslogtreecommitdiffstats
path: root/fs/nfs/pnfs.h
diff options
context:
space:
mode:
authorPeng Tao <tao.peng@primarydata.com>2014-09-05 18:53:24 +0200
committerTom Haynes <loghyr@primarydata.com>2015-02-03 20:06:41 +0100
commitce6ab4f238cb76d356229e97e1fefb7192388e13 (patch)
tree928a0be822e46a712597d8ef6b5731f84c5320ce /fs/nfs/pnfs.h
parentnfs41: add a helper to mark layout for return (diff)
downloadlinux-ce6ab4f238cb76d356229e97e1fefb7192388e13.tar.xz
linux-ce6ab4f238cb76d356229e97e1fefb7192388e13.zip
nfs41: don't use a layout if it is marked for returning
And if we are to return the same type of layouts, don't bother sending more layoutgets. Signed-off-by: Peng Tao <tao.peng@primarydata.com> Signed-off-by: Tom Haynes <Thomas.Haynes@primarydata.com>
Diffstat (limited to '')
-rw-r--r--fs/nfs/pnfs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfs/pnfs.h b/fs/nfs/pnfs.h
index bea2030eec74..9e6edd1ebbc6 100644
--- a/fs/nfs/pnfs.h
+++ b/fs/nfs/pnfs.h
@@ -249,6 +249,7 @@ void pnfs_set_layout_stateid(struct pnfs_layout_hdr *lo,
bool update_barrier);
int pnfs_choose_layoutget_stateid(nfs4_stateid *dst,
struct pnfs_layout_hdr *lo,
+ struct pnfs_layout_range *range,
struct nfs4_state *open_state);
int pnfs_mark_matching_lsegs_invalid(struct pnfs_layout_hdr *lo,
struct list_head *tmp_list,