diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-11-20 19:49:20 -0500 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-12-06 00:30:42 +0100 |
commit | 87dda67e7386ba7d2164391ea58b34e028d8157b (patch) | |
tree | 9f8740fa1631a5bb5d3163d86783a764d542cbc6 /fs/nfs/nfs4_fs.h | |
parent | 97e548a93de213b149eea025a97d88e28143b445 (diff) | |
download | linux-87dda67e7386ba7d2164391ea58b34e028d8157b.tar.gz linux-87dda67e7386ba7d2164391ea58b34e028d8157b.tar.bz2 linux-87dda67e7386ba7d2164391ea58b34e028d8157b.zip |
NFSv4.1: Allow SEQUENCE to resize the slot table on the fly
Instead of an array of slots, use a singly linked list of slots that
can be dynamically appended to or shrunk.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/nfs4_fs.h')
-rw-r--r-- | fs/nfs/nfs4_fs.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfs/nfs4_fs.h b/fs/nfs/nfs4_fs.h index 5d4e82b10c3c..856bc496a210 100644 --- a/fs/nfs/nfs4_fs.h +++ b/fs/nfs/nfs4_fs.h @@ -258,10 +258,10 @@ extern int nfs4_proc_get_lease_time(struct nfs_client *clp, extern int nfs4_proc_layoutcommit(struct nfs4_layoutcommit_data *data, bool sync); -extern struct nfs4_slot *nfs4_alloc_slots(struct nfs4_slot_table *table, - u32 max_slots, gfp_t gfp_flags); extern void nfs41_set_target_slotid(struct nfs4_slot_table *tbl, u32 target_highest_slotid); +extern int nfs4_resize_slot_table(struct nfs4_slot_table *tbl, + u32 max_reqs, u32 ivalue); static inline bool is_ds_only_client(struct nfs_client *clp) |