/fs/nfs/ |
D | nfs4state.c | 353 struct nfs4_state *state; in nfs4_alloc_open_state() local 355 state = kzalloc(sizeof(*state), GFP_KERNEL); in nfs4_alloc_open_state() 356 if (!state) in nfs4_alloc_open_state() 358 atomic_set(&state->count, 1); in nfs4_alloc_open_state() 359 INIT_LIST_HEAD(&state->lock_states); in nfs4_alloc_open_state() 360 spin_lock_init(&state->state_lock); in nfs4_alloc_open_state() 361 seqlock_init(&state->seqlock); in nfs4_alloc_open_state() 362 return state; in nfs4_alloc_open_state() 366 nfs4_state_set_mode_locked(struct nfs4_state *state, fmode_t fmode) in nfs4_state_set_mode_locked() argument 368 if (state->state == fmode) in nfs4_state_set_mode_locked() [all …]
|
D | nfs4proc.c | 238 struct nfs4_state *state = exception->state; in nfs4_handle_exception() local 248 if (state == NULL) in nfs4_handle_exception() 250 nfs4_state_mark_reclaim_nograce(clp, state); in nfs4_handle_exception() 305 struct nfs4_state *state; member 381 if (p->state != NULL) in nfs4_opendata_free() 382 nfs4_put_open_state(p->state); in nfs4_opendata_free() 403 static int can_open_cached(struct nfs4_state *state, fmode_t mode, int open_mode) in can_open_cached() argument 411 ret |= test_bit(NFS_O_RDONLY_STATE, &state->flags) != 0; in can_open_cached() 414 ret |= test_bit(NFS_O_WRONLY_STATE, &state->flags) != 0; in can_open_cached() 417 ret |= test_bit(NFS_O_RDWR_STATE, &state->flags) != 0; in can_open_cached() [all …]
|
D | delegation.c | 67 static int nfs_delegation_claim_locks(struct nfs_open_context *ctx, struct nfs4_state *state) in nfs_delegation_claim_locks() argument 69 struct inode *inode = state->inode; in nfs_delegation_claim_locks() 78 status = nfs4_lock_delegation_recall(state, fl); in nfs_delegation_claim_locks() 101 struct nfs4_state *state; in nfs_delegation_claim_opens() local 107 state = ctx->state; in nfs_delegation_claim_opens() 108 if (state == NULL) in nfs_delegation_claim_opens() 110 if (!test_bit(NFS_DELEGATED_STATE, &state->flags)) in nfs_delegation_claim_opens() 112 if (memcmp(state->stateid.data, stateid->data, sizeof(state->stateid.data)) != 0) in nfs_delegation_claim_opens() 116 err = nfs4_open_delegation_recall(ctx, state, stateid); in nfs_delegation_claim_opens() 118 err = nfs_delegation_claim_locks(ctx, state); in nfs_delegation_claim_opens()
|
/fs/nfsd/ |
D | nfs4acl.c | 434 init_state(struct posix_acl_state *state, int cnt) in init_state() argument 438 memset(state, 0, sizeof(struct posix_acl_state)); in init_state() 439 state->empty = 1; in init_state() 447 state->users = kzalloc(alloc, GFP_KERNEL); in init_state() 448 if (!state->users) in init_state() 450 state->groups = kzalloc(alloc, GFP_KERNEL); in init_state() 451 if (!state->groups) { in init_state() 452 kfree(state->users); in init_state() 459 free_state(struct posix_acl_state *state) { in free_state() argument 460 kfree(state->users); in free_state() [all …]
|
/fs/partitions/ |
D | msdos.c | 106 parse_extended(struct parsed_partitions *state, struct block_device *bdev, in parse_extended() argument 124 if (state->next == state->limit) in parse_extended() 166 put_partition(state, state->next, next, size); in parse_extended() 168 state->parts[state->next].flags = ADDPART_FLAG_RAID; in parse_extended() 170 if (++state->next == state->limit) in parse_extended() 199 parse_solaris_x86(struct parsed_partitions *state, struct block_device *bdev, in parse_solaris_x86() argument 215 printk(" %s%d: <solaris:", state->name, origin); in parse_solaris_x86() 224 for (i=0; i<max_nparts && state->next<state->limit; i++) { in parse_solaris_x86() 231 put_partition(state, state->next++, in parse_solaris_x86() 246 parse_bsd(struct parsed_partitions *state, struct block_device *bdev, in parse_bsd() argument [all …]
|
D | acorn.c | 31 adfs_partition(struct parsed_partitions *state, char *name, char *data, in adfs_partition() argument 50 put_partition(state, slot, first_sector, nr_sects); in adfs_partition() 74 riscix_partition(struct parsed_partitions *state, struct block_device *bdev, in riscix_partition() argument 93 put_partition(state, slot++, first_sect, size); in riscix_partition() 97 put_partition(state, slot++, in riscix_partition() 106 put_partition(state, slot++, first_sect, nr_sects); in riscix_partition() 127 linux_partition(struct parsed_partitions *state, struct block_device *bdev, in linux_partition() argument 136 put_partition(state, slot++, first_sect, size); in linux_partition() 145 if (slot == state->limit) in linux_partition() 147 put_partition(state, slot++, first_sect + in linux_partition() [all …]
|
D | check.c | 159 struct parsed_partitions *state; in check_partition() local 162 state = kmalloc(sizeof(struct parsed_partitions), GFP_KERNEL); in check_partition() 163 if (!state) in check_partition() 166 disk_name(hd, 0, state->name); in check_partition() 167 printk(KERN_INFO " %s:", state->name); in check_partition() 168 if (isdigit(state->name[strlen(state->name)-1])) in check_partition() 169 sprintf(state->name, "p"); in check_partition() 171 state->limit = disk_max_parts(hd); in check_partition() 174 memset(&state->parts, 0, sizeof(state->parts)); in check_partition() 175 res = check_part[i++](state, bdev); in check_partition() [all …]
|
D | acorn.h | 10 int adfspart_check_CUMANA(struct parsed_partitions *state, struct block_device *bdev); 11 int adfspart_check_ADFS(struct parsed_partitions *state, struct block_device *bdev); 12 int adfspart_check_ICS(struct parsed_partitions *state, struct block_device *bdev); 13 int adfspart_check_POWERTEC(struct parsed_partitions *state, struct block_device *bdev); 14 int adfspart_check_EESOX(struct parsed_partitions *state, struct block_device *bdev);
|
D | atari.c | 33 int atari_partition(struct parsed_partitions *state, struct block_device *bdev) in atari_partition() argument 66 for (slot = 1; pi < &rs->part[4] && slot < state->limit; slot++, pi++) { in atari_partition() 76 put_partition (state, slot, be32_to_cpu(pi->st), in atari_partition() 101 put_partition(state, slot, in atari_partition() 118 if (++slot == state->limit) { in atari_partition() 131 for (; pi < &rs->icdpart[8] && slot < state->limit; slot++, pi++) { in atari_partition() 136 put_partition (state, slot, in atari_partition()
|
D | sysv68.c | 49 int sysv68_partition(struct parsed_partitions *state, struct block_device *bdev) in sysv68_partition() argument 76 printk("sysV68: %s(s%u)", state->name, slices); in sysv68_partition() 79 if (slot == state->limit) in sysv68_partition() 82 put_partition(state, slot, in sysv68_partition()
|
/fs/xfs/ |
D | xfs_dir2_node.c | 56 static void xfs_dir2_leafn_rebalance(xfs_da_state_t *state, 398 xfs_da_state_t *state) /* state to fill in */ in xfs_dir2_leafn_lookup_for_addname() argument 432 if (state->extravalid) { in xfs_dir2_leafn_lookup_for_addname() 434 curbp = state->extrablk.bp; in xfs_dir2_leafn_lookup_for_addname() 435 curfdb = state->extrablk.blkno; in xfs_dir2_leafn_lookup_for_addname() 521 state->extravalid = 1; in xfs_dir2_leafn_lookup_for_addname() 522 state->extrablk.bp = curbp; in xfs_dir2_leafn_lookup_for_addname() 523 state->extrablk.index = fi; in xfs_dir2_leafn_lookup_for_addname() 524 state->extrablk.blkno = curfdb; in xfs_dir2_leafn_lookup_for_addname() 525 state->extrablk.magic = XFS_DIR2_FREE_MAGIC; in xfs_dir2_leafn_lookup_for_addname() [all …]
|
D | xfs_da_btree.c | 63 STATIC int xfs_da_root_split(xfs_da_state_t *state, 66 STATIC int xfs_da_node_split(xfs_da_state_t *state, 72 STATIC void xfs_da_node_rebalance(xfs_da_state_t *state, 75 STATIC void xfs_da_node_add(xfs_da_state_t *state, 82 STATIC int xfs_da_root_join(xfs_da_state_t *state, 84 STATIC int xfs_da_node_toosmall(xfs_da_state_t *state, int *retval); 85 STATIC void xfs_da_node_remove(xfs_da_state_t *state, 87 STATIC void xfs_da_node_unbalance(xfs_da_state_t *state, 97 STATIC int xfs_da_blk_unlink(xfs_da_state_t *state, 100 STATIC void xfs_da_state_kill_altpath(xfs_da_state_t *state); [all …]
|
D | xfs_attr.c | 82 STATIC int xfs_attr_fillstate(xfs_da_state_t *state); 83 STATIC int xfs_attr_refillstate(xfs_da_state_t *state); 1243 xfs_da_state_t *state; in xfs_attr_node_addname() local 1255 state = xfs_da_state_alloc(); in xfs_attr_node_addname() 1256 state->args = args; in xfs_attr_node_addname() 1257 state->mp = mp; in xfs_attr_node_addname() 1258 state->blocksize = state->mp->m_sb.sb_blocksize; in xfs_attr_node_addname() 1259 state->node_ents = state->mp->m_attr_node_ents; in xfs_attr_node_addname() 1265 error = xfs_da_node_lookup_int(state, &retval); in xfs_attr_node_addname() 1268 blk = &state->path.blk[ state->path.active-1 ]; in xfs_attr_node_addname() [all …]
|
D | xfs_attr_leaf.c | 64 STATIC void xfs_attr_leaf_rebalance(xfs_da_state_t *state, 67 STATIC int xfs_attr_leaf_figure_balance(xfs_da_state_t *state, 949 xfs_attr_leaf_split(xfs_da_state_t *state, xfs_da_state_blk_t *oldblk, in xfs_attr_leaf_split() argument 959 error = xfs_da_grow_inode(state->args, &blkno); in xfs_attr_leaf_split() 962 error = xfs_attr_leaf_create(state->args, blkno, &newblk->bp); in xfs_attr_leaf_split() 972 xfs_attr_leaf_rebalance(state, oldblk, newblk); in xfs_attr_leaf_split() 973 error = xfs_da_blk_link(state, oldblk, newblk); in xfs_attr_leaf_split() 984 if (state->inleaf) in xfs_attr_leaf_split() 985 error = xfs_attr_leaf_add(oldblk->bp, state->args); in xfs_attr_leaf_split() 987 error = xfs_attr_leaf_add(newblk->bp, state->args); in xfs_attr_leaf_split() [all …]
|
D | xfs_da_btree.h | 218 int xfs_da_split(xfs_da_state_t *state); 223 int xfs_da_join(xfs_da_state_t *state); 224 void xfs_da_fixhashpath(xfs_da_state_t *state, 230 int xfs_da_node_lookup_int(xfs_da_state_t *state, int *result); 231 int xfs_da_path_shift(xfs_da_state_t *state, xfs_da_state_path_t *path, 236 int xfs_da_blk_link(xfs_da_state_t *state, xfs_da_state_blk_t *old_blk, 260 void xfs_da_state_free(xfs_da_state_t *state);
|
/fs/btrfs/ |
D | extent_io.c | 78 struct extent_state *state; in extent_io_exit() local 82 state = list_entry(states.next, struct extent_state, leak_list); in extent_io_exit() 85 (unsigned long long)state->start, in extent_io_exit() 86 (unsigned long long)state->end, in extent_io_exit() 87 state->state, state->tree, atomic_read(&state->refs)); in extent_io_exit() 88 list_del(&state->leak_list); in extent_io_exit() 89 kmem_cache_free(extent_state_cache, state); in extent_io_exit() 110 tree->state.rb_node = NULL; in extent_io_tree_init() 121 struct extent_state *state; in alloc_extent_state() local 126 state = kmem_cache_alloc(extent_state_cache, mask); in alloc_extent_state() [all …]
|
/fs/jfs/ |
D | jfs_mount.c | 250 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/ |
D | posix_acl.c | 75 int state = ACL_USER_OBJ; in posix_acl_valid() local 84 if (state == ACL_USER_OBJ) { in posix_acl_valid() 86 state = ACL_USER; in posix_acl_valid() 92 if (state != ACL_USER) in posix_acl_valid() 102 if (state == ACL_USER) { in posix_acl_valid() 104 state = ACL_GROUP; in posix_acl_valid() 110 if (state != ACL_GROUP) in posix_acl_valid() 120 if (state != ACL_GROUP) in posix_acl_valid() 122 state = ACL_OTHER; in posix_acl_valid() 126 if (state == ACL_OTHER || in posix_acl_valid() [all …]
|
/fs/afs/ |
D | rxrpc.c | 285 call->state = AFS_CALL_AWAIT_REPLY; in afs_send_pages() 364 call->state = AFS_CALL_AWAIT_REPLY; in afs_make_call() 433 while ((call->state == AFS_CALL_AWAIT_REPLY || in afs_deliver_to_call() 434 call->state == AFS_CALL_AWAIT_OP_ID || in afs_deliver_to_call() 435 call->state == AFS_CALL_AWAIT_REQUEST || in afs_deliver_to_call() 436 call->state == AFS_CALL_AWAIT_ACK) && in afs_deliver_to_call() 446 call->state == AFS_CALL_AWAIT_REPLY) in afs_deliver_to_call() 447 call->state = AFS_CALL_COMPLETE; in afs_deliver_to_call() 457 if (call->state != AFS_CALL_AWAIT_REPLY) in afs_deliver_to_call() 463 call->state = AFS_CALL_ERROR; in afs_deliver_to_call() [all …]
|
D | vlocation.c | 176 vl->state = AFS_VL_NEW; in afs_vlocation_alloc() 411 vl->state = AFS_VL_CREATING; in afs_vlocation_lookup() 419 vl->state = AFS_VL_VALID; in afs_vlocation_lookup() 441 while (vl->state != AFS_VL_VALID) { in afs_vlocation_lookup() 442 afs_vlocation_state_t state = vl->state; in afs_vlocation_lookup() local 444 _debug("invalid [state %d]", state); in afs_vlocation_lookup() 446 if (state == AFS_VL_NEW || state == AFS_VL_NO_VOLUME) { in afs_vlocation_lookup() 447 vl->state = AFS_VL_CREATING; in afs_vlocation_lookup() 458 vl->state == AFS_VL_NEW || in afs_vlocation_lookup() 459 vl->state == AFS_VL_VALID || in afs_vlocation_lookup() [all …]
|
/fs/smbfs/ |
D | smbiod.c | 157 VERBOSE("state: %d\n", server->state); in smbiod_retry() 158 if (server->state == CONN_VALID || server->state == CONN_RETRYING) in smbiod_retry() 212 server->state = CONN_RETRIED; in smbiod_retry() 219 server->state = CONN_RETRYING; in smbiod_retry() 256 if (server->state != CONN_VALID) in smbiod_doio() 262 server->state = CONN_INVALID; in smbiod_doio() 272 if (server->state != CONN_VALID) in smbiod_doio() 280 server->state = CONN_INVALID; in smbiod_doio() 330 if (server->state == CONN_VALID) { in smbiod()
|
/fs/ocfs2/dlm/ |
D | dlmthread.c | 72 if (res->state & flags) { in __dlm_wait_on_lockres_flags() 98 (list_empty(&res->dirty) && !(res->state & DLM_LOCK_RES_DIRTY))) { in __dlm_lockres_unused() 172 res->state |= DLM_LOCK_RES_DROPPING_REF; in dlm_purge_lockres() 213 res->state &= ~DLM_LOCK_RES_DROPPING_REF; in dlm_purge_lockres() 295 BUG_ON((res->state & (DLM_LOCK_RES_MIGRATING| in dlm_shuffle_lists() 461 if (res->state & (DLM_LOCK_RES_MIGRATING | in __dlm_dirty_lockres() 469 res->state |= DLM_LOCK_RES_DIRTY; in __dlm_dirty_lockres() 663 res->state & DLM_LOCK_RES_IN_PROGRESS ? "yes" : "no", in dlm_thread() 664 res->state & DLM_LOCK_RES_MIGRATING ? "yes" : "no", in dlm_thread() 665 res->state & DLM_LOCK_RES_RECOVERING ? "yes" : "no", in dlm_thread() [all …]
|
D | dlmdebug.c | 108 buf, res->owner, res->state); in __dlm_print_one_lock_resource() 591 res->owner, res->state, res->last_used, in dump_lockres() 758 char *state; in debug_state_print() local 770 state = "NEW"; break; in debug_state_print() 772 state = "JOINED"; break; in debug_state_print() 774 state = "SHUTDOWN"; break; in debug_state_print() 776 state = "LEAVING"; break; in debug_state_print() 778 state = "UNKNOWN"; break; in debug_state_print() 788 dlm->dlm_thread_task->pid, dlm->node_num, state); in debug_state_print() 833 if (dlm->reco.state == DLM_RECO_STATE_ACTIVE) in debug_state_print() [all …]
|
/fs/gfs2/ |
D | glock.h | 80 void gfs2_holder_init(struct gfs2_glock *gl, unsigned int state, unsigned flags, 82 void gfs2_holder_reinit(unsigned int state, unsigned flags, 94 unsigned int state, int flags, struct gfs2_holder *gh); 112 unsigned int state, int flags, in gfs2_glock_nq_init() argument 117 gfs2_holder_init(gl, state, flags, gh); in gfs2_glock_nq_init()
|
/fs/ntfs/ |
D | inode.h | 51 unsigned long state; /* NTFS specific flags describing this inode. member 185 return test_bit(NI_##flag, &(ni)->state); \ 189 set_bit(NI_##flag, &(ni)->state); \ 193 clear_bit(NI_##flag, &(ni)->state); \ 202 return test_and_set_bit(NI_##flag, &(ni)->state); \ 206 return test_and_clear_bit(NI_##flag, &(ni)->state); \
|