aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs4_fs.h
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2012-11-20 15:16:30 -0500
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-12-05 18:30:37 -0500
commitce008c4bb9766bc7eeb02e8299c8baadc25da90b (patch)
treeb628ebf967388d2b7c76592dfde451516def7b36 /fs/nfs/nfs4_fs.h
parentda0507b7c95ccd4d9c86394eef42fe076032af30 (diff)
NFSv4.1: Fix nfs4_callback_recallslot to work with dynamic slot allocation
Ensure that the NFSv4.1 CB_RECALL_SLOT callback updates the slot table target max slotid safely. Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/nfs4_fs.h')
-rw-r--r--fs/nfs/nfs4_fs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/nfs/nfs4_fs.h b/fs/nfs/nfs4_fs.h
index 42c58691fb41..5d4e82b10c3c 100644
--- a/fs/nfs/nfs4_fs.h
+++ b/fs/nfs/nfs4_fs.h
@@ -260,6 +260,8 @@ extern int nfs4_proc_layoutcommit(struct nfs4_layoutcommit_data *data,
260 260
261extern struct nfs4_slot *nfs4_alloc_slots(struct nfs4_slot_table *table, 261extern struct nfs4_slot *nfs4_alloc_slots(struct nfs4_slot_table *table,
262 u32 max_slots, gfp_t gfp_flags); 262 u32 max_slots, gfp_t gfp_flags);
263extern void nfs41_set_target_slotid(struct nfs4_slot_table *tbl,
264 u32 target_highest_slotid);
263 265
264static inline bool 266static inline bool
265is_ds_only_client(struct nfs_client *clp) 267is_ds_only_client(struct nfs_client *clp)