Home
last modified time | relevance | path

Searched refs:state (Results 1 – 25 of 164) sorted by relevance

1234567

/fs/btrfs/
Dcheck-integrity.c202 struct btrfsic_state *state; member
304 static int btrfsic_process_superblock(struct btrfsic_state *state,
306 static int btrfsic_process_metablock(struct btrfsic_state *state,
314 struct btrfsic_state *state,
325 static int btrfsic_handle_extent_data(struct btrfsic_state *state,
329 static int btrfsic_map_block(struct btrfsic_state *state, u64 bytenr, u32 len,
333 static int btrfsic_read_block(struct btrfsic_state *state,
335 static void btrfsic_dump_database(struct btrfsic_state *state);
336 static int btrfsic_test_for_metadata(struct btrfsic_state *state,
345 struct btrfsic_state *state,
[all …]
Dextent_io.c29 static inline bool extent_state_in_tree(const struct extent_state *state) in extent_state_in_tree() argument
31 return !RB_EMPTY_NODE(&state->rb_node); in extent_state_in_tree()
63 struct extent_state *state; in btrfs_leak_debug_check() local
67 state = list_entry(states.next, struct extent_state, leak_list); in btrfs_leak_debug_check()
69 state->start, state->end, state->state, in btrfs_leak_debug_check()
70 extent_state_in_tree(state), in btrfs_leak_debug_check()
71 atomic_read(&state->refs)); in btrfs_leak_debug_check()
72 list_del(&state->leak_list); in btrfs_leak_debug_check()
73 kmem_cache_free(extent_state_cache, state); in btrfs_leak_debug_check()
134 static void add_extent_changeset(struct extent_state *state, unsigned bits, in add_extent_changeset() argument
[all …]
Dtransaction.c109 while (!RB_EMPTY_ROOT(&tree->state)) { in clear_btree_io_tree()
111 struct extent_state *state; in clear_btree_io_tree() local
113 node = rb_first(&tree->state); in clear_btree_io_tree()
114 state = rb_entry(node, struct extent_state, rb_node); in clear_btree_io_tree()
115 rb_erase(&state->rb_node, &tree->state); in clear_btree_io_tree()
116 RB_CLEAR_NODE(&state->rb_node); in clear_btree_io_tree()
121 ASSERT(!waitqueue_active(&state->wq)); in clear_btree_io_tree()
122 free_extent_state(state); in clear_btree_io_tree()
206 if (btrfs_blocked_trans_types[cur_trans->state] & type) { in join_transaction()
255 cur_trans->state = TRANS_STATE_RUNNING; in join_transaction()
[all …]
/fs/nfsd/
Dnfs4acl.c455 init_state(struct posix_acl_state *state, int cnt) in init_state() argument
459 memset(state, 0, sizeof(struct posix_acl_state)); in init_state()
460 state->empty = 1; in init_state()
468 state->users = kzalloc(alloc, GFP_KERNEL); in init_state()
469 if (!state->users) in init_state()
471 state->groups = kzalloc(alloc, GFP_KERNEL); in init_state()
472 if (!state->groups) { in init_state()
473 kfree(state->users); in init_state()
480 free_state(struct posix_acl_state *state) { in free_state() argument
481 kfree(state->users); in free_state()
[all …]
/fs/nfs/
Dnfs4state.c636 struct nfs4_state *state; in nfs4_alloc_open_state() local
638 state = kzalloc(sizeof(*state), GFP_NOFS); in nfs4_alloc_open_state()
639 if (!state) in nfs4_alloc_open_state()
641 atomic_set(&state->count, 1); in nfs4_alloc_open_state()
642 INIT_LIST_HEAD(&state->lock_states); in nfs4_alloc_open_state()
643 spin_lock_init(&state->state_lock); in nfs4_alloc_open_state()
644 seqlock_init(&state->seqlock); in nfs4_alloc_open_state()
645 return state; in nfs4_alloc_open_state()
649 nfs4_state_set_mode_locked(struct nfs4_state *state, fmode_t fmode) in nfs4_state_set_mode_locked() argument
651 if (state->state == fmode) in nfs4_state_set_mode_locked()
[all …]
Dnfs4proc.c96 struct nfs4_state *state, struct nfs4_label *ilabel,
388 struct nfs4_state *state = exception->state; in nfs4_do_handle_exception() local
397 if (stateid == NULL && state != NULL) in nfs4_do_handle_exception()
398 stateid = &state->stateid; in nfs4_do_handle_exception()
425 if (state == NULL) in nfs4_do_handle_exception()
427 ret = nfs4_schedule_stateid_recovery(server, state); in nfs4_do_handle_exception()
551 struct nfs4_state *state, long *timeout) in nfs4_async_handle_error() argument
554 .state = state, in nfs4_async_handle_error()
1107 struct nfs4_state *state; member
1288 if (p->state != NULL) in nfs4_opendata_free()
[all …]
Dnfs4trace.h406 const struct nfs4_state *state = ctx->state;
413 if (!IS_ERR_OR_NULL(state)) {
414 inode = state->inode;
416 be32_to_cpu(state->stateid.seqid);
418 nfs_stateid_hash(&state->stateid);
420 be32_to_cpu(state->open_stateid.seqid);
422 nfs_stateid_hash(&state->open_stateid);
475 const struct nfs4_state *state
477 TP_ARGS(state),
488 const struct inode *inode = state->inode;
[all …]
/fs/xfs/libxfs/
Dxfs_da_btree.c57 STATIC int xfs_da3_root_split(xfs_da_state_t *state,
60 STATIC int xfs_da3_node_split(xfs_da_state_t *state,
66 STATIC void xfs_da3_node_rebalance(xfs_da_state_t *state,
69 STATIC void xfs_da3_node_add(xfs_da_state_t *state,
76 STATIC int xfs_da3_root_join(xfs_da_state_t *state,
78 STATIC int xfs_da3_node_toosmall(xfs_da_state_t *state, int *retval);
79 STATIC void xfs_da3_node_remove(xfs_da_state_t *state,
81 STATIC void xfs_da3_node_unbalance(xfs_da_state_t *state,
88 STATIC int xfs_da3_blk_unlink(xfs_da_state_t *state,
109 xfs_da_state_kill_altpath(xfs_da_state_t *state) in xfs_da_state_kill_altpath() argument
[all …]
Dxfs_attr.c73 STATIC int xfs_attr_fillstate(xfs_da_state_t *state);
74 STATIC int xfs_attr_refillstate(xfs_da_state_t *state);
798 xfs_da_state_t *state; in xfs_attr_node_addname() local
812 state = xfs_da_state_alloc(); in xfs_attr_node_addname()
813 state->args = args; in xfs_attr_node_addname()
814 state->mp = mp; in xfs_attr_node_addname()
820 error = xfs_da3_node_lookup_int(state, &retval); in xfs_attr_node_addname()
823 blk = &state->path.blk[ state->path.active-1 ]; in xfs_attr_node_addname()
851 retval = xfs_attr3_leaf_add(blk->bp, state->args); in xfs_attr_node_addname()
853 if (state->path.active == 1) { in xfs_attr_node_addname()
[all …]
Dxfs_dir2_node.c43 static void xfs_dir2_leafn_rebalance(xfs_da_state_t *state,
563 xfs_da_state_t *state) /* state to fill in */ in xfs_dir2_leafn_lookup_for_addname() argument
600 if (state->extravalid) { in xfs_dir2_leafn_lookup_for_addname()
602 curbp = state->extrablk.bp; in xfs_dir2_leafn_lookup_for_addname()
603 curfdb = state->extrablk.blkno; in xfs_dir2_leafn_lookup_for_addname()
688 state->extravalid = 1; in xfs_dir2_leafn_lookup_for_addname()
689 state->extrablk.bp = curbp; in xfs_dir2_leafn_lookup_for_addname()
690 state->extrablk.index = fi; in xfs_dir2_leafn_lookup_for_addname()
691 state->extrablk.blkno = curfdb; in xfs_dir2_leafn_lookup_for_addname()
698 state->extrablk.magic = XFS_DIR2_FREE_MAGIC; in xfs_dir2_leafn_lookup_for_addname()
[all …]
Dxfs_bmap.c174 xfs_exntst_t state) in xfs_bmbt_update() argument
178 xfs_bmbt_disk_set_allf(&rec.bmbt, off, bno, len, state); in xfs_bmbt_update()
526 int state = 0; in xfs_bmap_trace_exlist() local
529 state |= BMAP_ATTRFORK; in xfs_bmap_trace_exlist()
531 state |= BMAP_COWFORK; in xfs_bmap_trace_exlist()
536 trace_xfs_extlist(ip, idx, state, caller_ip); in xfs_bmap_trace_exlist()
1741 int state = 0;/* state bits, accessed thru macros */ in xfs_bmap_add_extent_delay_real() local
1769 state |= BMAP_COWFORK; in xfs_bmap_add_extent_delay_real()
1788 state |= BMAP_LEFT_FILLING; in xfs_bmap_add_extent_delay_real()
1790 state |= BMAP_RIGHT_FILLING; in xfs_bmap_add_extent_delay_real()
[all …]
Dxfs_attr_leaf.c68 STATIC void xfs_attr3_leaf_rebalance(xfs_da_state_t *state,
71 STATIC int xfs_attr3_leaf_figure_balance(xfs_da_state_t *state,
1090 struct xfs_da_state *state, in xfs_attr3_leaf_split() argument
1097 trace_xfs_attr_leaf_split(state->args); in xfs_attr3_leaf_split()
1103 error = xfs_da_grow_inode(state->args, &blkno); in xfs_attr3_leaf_split()
1106 error = xfs_attr3_leaf_create(state->args, blkno, &newblk->bp); in xfs_attr3_leaf_split()
1116 xfs_attr3_leaf_rebalance(state, oldblk, newblk); in xfs_attr3_leaf_split()
1117 error = xfs_da3_blk_link(state, oldblk, newblk); in xfs_attr3_leaf_split()
1128 if (state->inleaf) { in xfs_attr3_leaf_split()
1129 trace_xfs_attr_leaf_add_old(state->args); in xfs_attr3_leaf_split()
[all …]
Dxfs_da_btree.h167 int xfs_da3_split(xfs_da_state_t *state);
172 int xfs_da3_join(xfs_da_state_t *state);
173 void xfs_da3_fixhashpath(struct xfs_da_state *state,
179 int xfs_da3_node_lookup_int(xfs_da_state_t *state, int *result);
180 int xfs_da3_path_shift(xfs_da_state_t *state, xfs_da_state_path_t *path,
185 int xfs_da3_blk_link(xfs_da_state_t *state, xfs_da_state_blk_t *old_blk,
216 void xfs_da_state_free(xfs_da_state_t *state);
/fs/quota/
Dquota.c121 struct qc_state state; in quota_getinfo() local
130 ret = sb->s_qcop->get_state(sb, &state); in quota_getinfo()
133 tstate = state.s_state + type; in quota_getinfo()
319 static int quota_state_to_flags(struct qc_state *state) in quota_state_to_flags() argument
323 if (state->s_state[USRQUOTA].flags & QCI_ACCT_ENABLED) in quota_state_to_flags()
325 if (state->s_state[USRQUOTA].flags & QCI_LIMITS_ENFORCED) in quota_state_to_flags()
327 if (state->s_state[GRPQUOTA].flags & QCI_ACCT_ENABLED) in quota_state_to_flags()
329 if (state->s_state[GRPQUOTA].flags & QCI_LIMITS_ENFORCED) in quota_state_to_flags()
331 if (state->s_state[PRJQUOTA].flags & QCI_ACCT_ENABLED) in quota_state_to_flags()
333 if (state->s_state[PRJQUOTA].flags & QCI_LIMITS_ENFORCED) in quota_state_to_flags()
[all …]
/fs/fscache/
Doperation.c42 op->state = FSCACHE_OP_ST_INITIALISED; in fscache_operation_init()
69 ASSERTCMP(op->state, ==, FSCACHE_OP_ST_IN_PROGRESS); in fscache_enqueue_operation()
96 ASSERTCMP(op->state, ==, FSCACHE_OP_ST_PENDING); in fscache_run_op()
98 op->state = FSCACHE_OP_ST_IN_PROGRESS; in fscache_run_op()
123 op->debug_id, object->debug_id, object->state->name); in fscache_report_unexpected_submission()
124 kdebug("objstate=%s [%s]", object->state->name, ostate->name); in fscache_report_unexpected_submission()
158 ASSERTCMP(op->state, ==, FSCACHE_OP_ST_INITIALISED); in fscache_submit_exclusive_op()
166 ostate = object->state; in fscache_submit_exclusive_op()
169 op->state = FSCACHE_OP_ST_PENDING; in fscache_submit_exclusive_op()
174 op->state = FSCACHE_OP_ST_CANCELLED; in fscache_submit_exclusive_op()
[all …]
Dobject.c55 #define transit_to(state) ({ prefetch(&STATE(state)->work); STATE(state); }) argument
74 #define TRANSIT_TO(state, emask) \ argument
75 { .events = (emask), .transit_to = STATE(state) }
171 const struct fscache_state *state, *new_state; in fscache_object_sm_dispatcher() local
178 object->debug_id, object->state->name, object->events); in fscache_object_sm_dispatcher()
183 state = object->state; in fscache_object_sm_dispatcher()
193 state = t->transit_to; in fscache_object_sm_dispatcher()
194 ASSERT(state->work != NULL); in fscache_object_sm_dispatcher()
204 if (!state->work) { in fscache_object_sm_dispatcher()
206 for (t = state->transitions; t->events; t++) { in fscache_object_sm_dispatcher()
[all …]
/fs/jfs/
Djfs_mount.c250 if (chkSuper(sb) || (sbi->state != FM_CLEAN)) in jfs_mount_rw()
371 sbi->state = le32_to_cpu(j_sb->s_state); in chkSuper()
409 int updateSuper(struct super_block *sb, uint state) in updateSuper() argument
417 if (state == FM_DIRTY) { in updateSuper()
418 sbi->p_state = state; in updateSuper()
420 } else if (state == FM_MOUNT) { in updateSuper()
421 sbi->p_state = sbi->state; in updateSuper()
422 state = FM_DIRTY; in updateSuper()
423 } else if (state == FM_CLEAN) { in updateSuper()
424 state = sbi->p_state; in updateSuper()
[all …]
/fs/afs/
Drxrpc.c295 call->state = AFS_CALL_AWAIT_REPLY; in afs_send_pages()
379 call->state = AFS_CALL_AWAIT_REPLY; in afs_make_call()
396 call->state = AFS_CALL_COMPLETE; in afs_make_call()
423 while (call->state == AFS_CALL_AWAIT_REPLY || in afs_deliver_to_call()
424 call->state == AFS_CALL_AWAIT_OP_ID || in afs_deliver_to_call()
425 call->state == AFS_CALL_AWAIT_REQUEST || in afs_deliver_to_call()
426 call->state == AFS_CALL_AWAIT_ACK in afs_deliver_to_call()
428 if (call->state == AFS_CALL_AWAIT_ACK) { in afs_deliver_to_call()
436 call->state = AFS_CALL_COMPLETE; in afs_deliver_to_call()
445 if (call->state == AFS_CALL_AWAIT_REPLY) in afs_deliver_to_call()
[all …]
Dvlocation.c178 vl->state = AFS_VL_NEW; in afs_vlocation_alloc()
412 vl->state = AFS_VL_CREATING; in afs_vlocation_lookup()
420 vl->state = AFS_VL_VALID; in afs_vlocation_lookup()
447 while (vl->state != AFS_VL_VALID) { in afs_vlocation_lookup()
448 afs_vlocation_state_t state = vl->state; in afs_vlocation_lookup() local
450 _debug("invalid [state %d]", state); in afs_vlocation_lookup()
452 if (state == AFS_VL_NEW || state == AFS_VL_NO_VOLUME) { in afs_vlocation_lookup()
453 vl->state = AFS_VL_CREATING; in afs_vlocation_lookup()
464 vl->state == AFS_VL_NEW || in afs_vlocation_lookup()
465 vl->state == AFS_VL_VALID || in afs_vlocation_lookup()
[all …]
/fs/xfs/
Dxfs_quotaops.c70 struct qc_state *state) in xfs_fs_get_quota_state() argument
75 memset(state, 0, sizeof(*state)); in xfs_fs_get_quota_state()
78 state->s_incoredqs = q->qi_dquots; in xfs_fs_get_quota_state()
80 state->s_state[USRQUOTA].flags |= QCI_ACCT_ENABLED; in xfs_fs_get_quota_state()
82 state->s_state[USRQUOTA].flags |= QCI_LIMITS_ENFORCED; in xfs_fs_get_quota_state()
84 state->s_state[GRPQUOTA].flags |= QCI_ACCT_ENABLED; in xfs_fs_get_quota_state()
86 state->s_state[GRPQUOTA].flags |= QCI_LIMITS_ENFORCED; in xfs_fs_get_quota_state()
88 state->s_state[PRJQUOTA].flags |= QCI_ACCT_ENABLED; in xfs_fs_get_quota_state()
90 state->s_state[PRJQUOTA].flags |= QCI_LIMITS_ENFORCED; in xfs_fs_get_quota_state()
92 xfs_qm_fill_state(&state->s_state[USRQUOTA], mp, q->qi_uquotaip, in xfs_fs_get_quota_state()
[all …]
Dxfs_trans_rmap.c40 xfs_exntst_t state) in xfs_trans_set_rmap_flags() argument
43 if (state == XFS_EXT_UNWRITTEN) in xfs_trans_set_rmap_flags()
104 xfs_exntst_t state, in xfs_trans_log_finish_rmap_update() argument
110 startblock, blockcount, state, pcur); in xfs_trans_log_finish_rmap_update()
213 void **state) in xfs_rmap_update_finish_item() argument
226 (struct xfs_btree_cur **)state); in xfs_rmap_update_finish_item()
235 void *state, in xfs_rmap_update_finish_cleanup() argument
238 struct xfs_btree_cur *rcur = state; in xfs_rmap_update_finish_cleanup()
/fs/ocfs2/dlm/
Ddlmthread.c70 if (res->state & flags) { in __dlm_wait_on_lockres_flags()
106 if (!list_empty(&res->dirty) || res->state & DLM_LOCK_RES_DIRTY) in __dlm_lockres_unused()
109 if (res->state & (DLM_LOCK_RES_RECOVERING| in __dlm_lockres_unused()
206 res->state &= ~DLM_LOCK_RES_DROPPING_REF; in __dlm_do_purge_lockres()
224 if (res->state & DLM_LOCK_RES_DROPPING_REF) { in dlm_purge_lockres()
231 res->state |= DLM_LOCK_RES_DROPPING_REF; in dlm_purge_lockres()
288 res->state &= ~DLM_LOCK_RES_DROPPING_REF; in dlm_purge_lockres()
333 (lockres->state & DLM_LOCK_RES_MIGRATING) || in dlm_run_purge_list()
339 !unused, lockres->state, in dlm_run_purge_list()
373 BUG_ON((res->state & (DLM_LOCK_RES_MIGRATING| in dlm_shuffle_lists()
[all …]
Ddlmdebug.c107 buf, res->owner, res->state); in __dlm_print_one_lock_resource()
518 res->owner, res->state, res->last_used, in dump_lockres()
681 char *state; in debug_state_print() local
689 state = "NEW"; break; in debug_state_print()
691 state = "JOINED"; break; in debug_state_print()
693 state = "SHUTDOWN"; break; in debug_state_print()
695 state = "LEAVING"; break; in debug_state_print()
697 state = "UNKNOWN"; break; in debug_state_print()
709 task_pid_nr(dlm->dlm_thread_task), dlm->node_num, state); in debug_state_print()
787 if (dlm->reco.state == DLM_RECO_STATE_ACTIVE) in debug_state_print()
[all …]
/fs/ceph/
Dmdsmap.c25 if (1 == m->m_max_mds && m->m_info[0].state > 0) in ceph_mdsmap_get_random_mds()
30 if (m->m_info[i].state > 0) in ceph_mdsmap_get_random_mds()
39 while (m->m_info[i].state <= 0) in ceph_mdsmap_get_random_mds()
93 s32 mds, inc, state; in ceph_mdsmap_decode() local
128 state = ceph_decode_32(p); in ceph_mdsmap_decode()
153 ceph_mds_state_name(state)); in ceph_mdsmap_decode()
155 if (mds < 0 || mds >= m->m_max_mds || state <= 0) in ceph_mdsmap_decode()
160 info->state = state; in ceph_mdsmap_decode()
/fs/squashfs/
Dxz_wrapper.c38 struct xz_dec *state; member
106 stream->state = xz_dec_init(XZ_PREALLOC, comp_opts->dict_size); in squashfs_xz_init()
107 if (stream->state == NULL) { in squashfs_xz_init()
126 xz_dec_end(stream->state); in squashfs_xz_free()
141 xz_dec_reset(stream->state); in squashfs_xz_uncompress()
174 xz_err = xz_dec_run(stream->state, &stream->buf); in squashfs_xz_uncompress()

1234567