Home
last modified time | relevance | path

Searched refs:tbl (Results 1 – 13 of 13) sorted by relevance

/fs/nfs/
Dnfs4session.c27 static void nfs4_init_slot_table(struct nfs4_slot_table *tbl, const char *queue) in nfs4_init_slot_table() argument
29 tbl->highest_used_slotid = NFS4_NO_SLOT; in nfs4_init_slot_table()
30 spin_lock_init(&tbl->slot_tbl_lock); in nfs4_init_slot_table()
31 rpc_init_priority_wait_queue(&tbl->slot_tbl_waitq, queue); in nfs4_init_slot_table()
32 init_waitqueue_head(&tbl->slot_waitq); in nfs4_init_slot_table()
33 init_completion(&tbl->complete); in nfs4_init_slot_table()
39 static void nfs4_shrink_slot_table(struct nfs4_slot_table *tbl, u32 newsize) in nfs4_shrink_slot_table() argument
42 if (newsize >= tbl->max_slots) in nfs4_shrink_slot_table()
45 p = &tbl->slots; in nfs4_shrink_slot_table()
53 tbl->max_slots--; in nfs4_shrink_slot_table()
[all …]
Dnfs4session.h82 extern int nfs4_setup_slot_table(struct nfs4_slot_table *tbl,
84 extern void nfs4_shutdown_slot_table(struct nfs4_slot_table *tbl);
85 extern struct nfs4_slot *nfs4_alloc_slot(struct nfs4_slot_table *tbl);
86 extern struct nfs4_slot *nfs4_lookup_slot(struct nfs4_slot_table *tbl, u32 slotid);
87 extern int nfs4_slot_wait_on_seqid(struct nfs4_slot_table *tbl,
90 extern bool nfs4_try_to_lock_slot(struct nfs4_slot_table *tbl, struct nfs4_slot *slot);
91 extern void nfs4_free_slot(struct nfs4_slot_table *tbl, struct nfs4_slot *slot);
92 extern void nfs4_slot_tbl_drain_complete(struct nfs4_slot_table *tbl);
93 bool nfs41_wake_and_assign_slot(struct nfs4_slot_table *tbl,
95 void nfs41_wake_slot_table(struct nfs4_slot_table *tbl);
[all …]
Dcallback_proc.c402 validate_seqid(const struct nfs4_slot_table *tbl, const struct nfs4_slot *slot, in validate_seqid() argument
408 if (args->csa_slotid > tbl->server_highest_slotid) in validate_seqid()
414 if (nfs4_test_locked_slot(tbl, slot->slot_nr)) in validate_seqid()
455 struct nfs4_slot_table *tbl; in referring_call_exists() local
464 tbl = &session->fc_slot_table; in referring_call_exists()
476 status = nfs4_slot_wait_on_seqid(tbl, ref->rc_slotid, in referring_call_exists()
493 struct nfs4_slot_table *tbl; in nfs4_callback_sequence() local
507 tbl = &clp->cl_session->bc_slot_table; in nfs4_callback_sequence()
515 spin_lock(&tbl->slot_tbl_lock); in nfs4_callback_sequence()
517 if (test_bit(NFS4_SLOT_TBL_DRAINING, &tbl->slot_tbl_state)) { in nfs4_callback_sequence()
[all …]
Dnfs4client.c341 struct nfs4_slot_table *tbl; in nfs40_init_client() local
344 tbl = kzalloc(sizeof(*tbl), GFP_NOFS); in nfs40_init_client()
345 if (tbl == NULL) in nfs40_init_client()
348 ret = nfs4_setup_slot_table(tbl, NFS4_MAX_SLOT_TABLE, in nfs40_init_client()
351 nfs4_shutdown_slot_table(tbl); in nfs40_init_client()
352 kfree(tbl); in nfs40_init_client()
356 clp->cl_slot_tbl = tbl; in nfs40_init_client()
Dnfs4state.c257 static void nfs4_end_drain_slot_table(struct nfs4_slot_table *tbl) in nfs4_end_drain_slot_table() argument
259 if (test_and_clear_bit(NFS4_SLOT_TBL_DRAINING, &tbl->slot_tbl_state)) { in nfs4_end_drain_slot_table()
260 spin_lock(&tbl->slot_tbl_lock); in nfs4_end_drain_slot_table()
261 nfs41_wake_slot_table(tbl); in nfs4_end_drain_slot_table()
262 spin_unlock(&tbl->slot_tbl_lock); in nfs4_end_drain_slot_table()
281 static int nfs4_drain_slot_tbl(struct nfs4_slot_table *tbl) in nfs4_drain_slot_tbl() argument
283 set_bit(NFS4_SLOT_TBL_DRAINING, &tbl->slot_tbl_state); in nfs4_drain_slot_tbl()
284 spin_lock(&tbl->slot_tbl_lock); in nfs4_drain_slot_tbl()
285 if (tbl->highest_used_slotid != NFS4_NO_SLOT) { in nfs4_drain_slot_tbl()
286 reinit_completion(&tbl->complete); in nfs4_drain_slot_tbl()
[all …]
Dcallback_xdr.c791 struct nfs4_slot_table *tbl = &session->bc_slot_table; in nfs4_callback_free_slot() local
793 spin_lock(&tbl->slot_tbl_lock); in nfs4_callback_free_slot()
798 nfs4_free_slot(tbl, slot); in nfs4_callback_free_slot()
799 spin_unlock(&tbl->slot_tbl_lock); in nfs4_callback_free_slot()
Dnfs4proc.c726 struct nfs4_slot_table *tbl; in nfs40_sequence_free_slot() local
728 tbl = slot->table; in nfs40_sequence_free_slot()
729 spin_lock(&tbl->slot_tbl_lock); in nfs40_sequence_free_slot()
730 if (!nfs41_wake_and_assign_slot(tbl, slot)) in nfs40_sequence_free_slot()
731 nfs4_free_slot(tbl, slot); in nfs40_sequence_free_slot()
732 spin_unlock(&tbl->slot_tbl_lock); in nfs40_sequence_free_slot()
750 struct nfs4_slot_table *tbl; in nfs41_release_slot() local
755 tbl = slot->table; in nfs41_release_slot()
756 session = tbl->session; in nfs41_release_slot()
763 spin_lock(&tbl->slot_tbl_lock); in nfs41_release_slot()
[all …]
/fs/
Dfs_parser.c27 __lookup_constant(const struct constant_table *tbl, const char *name) in __lookup_constant() argument
29 for ( ; tbl->name; tbl++) in __lookup_constant()
30 if (strcmp(name, tbl->name) == 0) in __lookup_constant()
31 return tbl; in __lookup_constant()
41 int lookup_constant(const struct constant_table *tbl, const char *name, int not_found) in lookup_constant() argument
43 const struct constant_table *p = __lookup_constant(tbl, name); in lookup_constant()
318 bool validate_constant_table(const struct constant_table *tbl, size_t tbl_size, in validate_constant_table() argument
330 if (!tbl[i].name) { in validate_constant_table()
333 } else if (i > 0 && tbl[i - 1].name) { in validate_constant_table()
334 int c = strcmp(tbl[i-1].name, tbl[i].name); in validate_constant_table()
[all …]
/fs/cifs/
Dwinucase.c629 const wchar_t *tbl; in cifs_toupper() local
636 tbl = toplevel[idx]; in cifs_toupper()
637 if (!tbl) in cifs_toupper()
644 out = tbl[idx]; in cifs_toupper()
/fs/ntfs3/
Dfslog.c816 static inline struct RESTART_TABLE *extend_rsttbl(struct RESTART_TABLE *tbl, in extend_rsttbl() argument
819 u16 esize = le16_to_cpu(tbl->size); in extend_rsttbl()
820 __le32 osize = cpu_to_le32(bytes_per_rt(tbl)); in extend_rsttbl()
821 u32 used = le16_to_cpu(tbl->used); in extend_rsttbl()
828 memcpy(rt + 1, tbl + 1, esize * used); in extend_rsttbl()
835 if (tbl->first_free) { in extend_rsttbl()
836 rt->first_free = tbl->first_free; in extend_rsttbl()
837 *(__le32 *)Add2Ptr(rt, le32_to_cpu(tbl->last_free)) = osize; in extend_rsttbl()
842 rt->total = tbl->total; in extend_rsttbl()
844 kfree(tbl); in extend_rsttbl()
[all …]
/fs/nfs/filelayout/
Dfilelayout.c131 struct nfs4_slot_table *tbl = &clp->cl_session->fc_slot_table; in filelayout_async_handle_error() local
174 rpc_wake_up(&tbl->slot_tbl_waitq); in filelayout_async_handle_error()
189 rpc_wake_up(&tbl->slot_tbl_waitq); in filelayout_async_handle_error()
/fs/nfs/flexfilelayout/
Dflexfilelayout.c1095 struct nfs4_slot_table *tbl = &clp->cl_session->fc_slot_table; in ff_layout_async_handle_error_v4() local
1133 rpc_wake_up(&tbl->slot_tbl_waitq); in ff_layout_async_handle_error_v4()
1149 rpc_wake_up(&tbl->slot_tbl_waitq); in ff_layout_async_handle_error_v4()
/fs/nfsd/
Dnfs4state.c2872 find_client_in_id_table(struct list_head *tbl, clientid_t *clid, bool sessions) in find_client_in_id_table() argument
2877 list_for_each_entry(clp, &tbl[idhashval], cl_idhash) { in find_client_in_id_table()
2891 struct list_head *tbl = nn->conf_id_hashtbl; in find_confirmed_client() local
2894 return find_client_in_id_table(tbl, clid, sessions); in find_confirmed_client()
2900 struct list_head *tbl = nn->unconf_id_hashtbl; in find_unconfirmed_client() local
2903 return find_client_in_id_table(tbl, clid, sessions); in find_unconfirmed_client()