Home
last modified time | relevance | path

Searched refs:sp (Results 1 – 24 of 24) sorted by relevance

/fs/nfs/
Dnfs4state.c209 struct nfs4_state_owner *sp; in nfs4_get_renew_cred_server_locked() local
215 sp = rb_entry(pos, struct nfs4_state_owner, so_server_node); in nfs4_get_renew_cred_server_locked()
216 if (list_empty(&sp->so_states)) in nfs4_get_renew_cred_server_locked()
218 cred = get_cred(sp->so_cred); in nfs4_get_renew_cred_server_locked()
407 struct nfs4_state_owner *sp; in nfs4_find_state_owner_locked() local
412 sp = rb_entry(parent, struct nfs4_state_owner, so_server_node); in nfs4_find_state_owner_locked()
413 cmp = cred_fscmp(cred, sp->so_cred); in nfs4_find_state_owner_locked()
420 if (!list_empty(&sp->so_lru)) in nfs4_find_state_owner_locked()
421 list_del_init(&sp->so_lru); in nfs4_find_state_owner_locked()
422 atomic_inc(&sp->so_count); in nfs4_find_state_owner_locked()
[all …]
Dnfs4proc.c1268 struct nfs4_state_owner *sp, fmode_t fmode, int flags, in nfs4_opendata_alloc() argument
1293 p->o_arg.seqid = alloc_seqid(&sp->so_seqid, gfp_mask); in nfs4_opendata_alloc()
1299 p->owner = sp; in nfs4_opendata_alloc()
1300 atomic_inc(&sp->so_count); in nfs4_opendata_alloc()
1334 p->o_arg.id.create_time = ktime_to_ns(sp->so_seqid.create_time); in nfs4_opendata_alloc()
1335 p->o_arg.id.uniquifier = sp->so_seqid.owner_id; in nfs4_opendata_alloc()
2169 static int nfs4_open_reclaim(struct nfs4_state_owner *sp, struct nfs4_state *state) in nfs4_open_reclaim() argument
2363 struct nfs4_state_owner *sp = data->owner; in nfs4_open_prepare() local
2364 struct nfs_client *clp = sp->so_server->nfs_client; in nfs4_open_prepare()
2691 static int nfs4_open_expired(struct nfs4_state_owner *sp, struct nfs4_state *state) in nfs4_open_expired() argument
[all …]
Ddelegation.c142 struct nfs4_state_owner *sp; in nfs_delegation_claim_opens() local
162 sp = state->owner; in nfs_delegation_claim_opens()
164 mutex_lock(&sp->so_delegreturn_mutex); in nfs_delegation_claim_opens()
165 seq = raw_seqcount_begin(&sp->so_reclaim_seqcount); in nfs_delegation_claim_opens()
169 if (!err && read_seqcount_retry(&sp->so_reclaim_seqcount, seq)) in nfs_delegation_claim_opens()
171 mutex_unlock(&sp->so_delegreturn_mutex); in nfs_delegation_claim_opens()
/fs/dlm/
Dconfig.c410 struct dlm_space *sp = NULL; in make_space() local
413 sp = kzalloc(sizeof(struct dlm_space), GFP_NOFS); in make_space()
416 if (!sp || !nds) in make_space()
419 config_group_init_type_name(&sp->group, name, &space_type); in make_space()
422 configfs_add_default_group(&nds->ns_group, &sp->group); in make_space()
424 INIT_LIST_HEAD(&sp->members); in make_space()
425 mutex_init(&sp->members_lock); in make_space()
426 sp->members_count = 0; in make_space()
427 return &sp->group; in make_space()
430 kfree(sp); in make_space()
[all …]
/fs/
Dbinfmt_aout.c63 unsigned long __user *sp; in create_aout_tables() local
67 sp = (void __user *)((-(unsigned long)sizeof(char *)) & (unsigned long) p); in create_aout_tables()
70 put_user(0, --sp); in create_aout_tables()
71 put_user(0, --sp); in create_aout_tables()
73 put_user(0, --sp); in create_aout_tables()
74 put_user(1003, --sp); in create_aout_tables()
75 put_user(bprm->loader, --sp); in create_aout_tables()
76 put_user(1002, --sp); in create_aout_tables()
78 put_user(bprm->exec, --sp); in create_aout_tables()
79 put_user(1001, --sp); in create_aout_tables()
[all …]
Dbinfmt_flat.c126 unsigned long __user *sp; in create_flat_tables() local
130 sp = (unsigned long __user *)current->mm->start_stack; in create_flat_tables()
132 sp -= bprm->envc + 1; in create_flat_tables()
133 sp -= bprm->argc + 1; in create_flat_tables()
135 sp -= 2; /* argvp + envp */ in create_flat_tables()
136 sp -= 1; /* &argc */ in create_flat_tables()
138 current->mm->start_stack = (unsigned long)sp & -FLAT_STACK_ALIGN; in create_flat_tables()
139 sp = (unsigned long __user *)current->mm->start_stack; in create_flat_tables()
141 __put_user(bprm->argc, sp++); in create_flat_tables()
144 argv = (unsigned long)(sp + 2); in create_flat_tables()
[all …]
Dbinfmt_elf_fdpic.c503 unsigned long sp, csp, nitems; in create_elf_fdpic_tables() local
517 sp = arch_align_stack(bprm->p); in create_elf_fdpic_tables()
519 sp = mm->start_stack; in create_elf_fdpic_tables()
522 if (transfer_args_to_stack(bprm, &sp) < 0) in create_elf_fdpic_tables()
524 sp &= ~15; in create_elf_fdpic_tables()
538 sp -= platform_len; in create_elf_fdpic_tables()
539 u_platform = (char __user *) sp; in create_elf_fdpic_tables()
553 sp -= platform_len; in create_elf_fdpic_tables()
554 u_base_platform = (char __user *) sp; in create_elf_fdpic_tables()
559 sp &= ~7UL; in create_elf_fdpic_tables()
[all …]
Dbinfmt_elf.c141 #define STACK_ADD(sp, items) ((elf_addr_t __user *)(sp) + (items)) argument
142 #define STACK_ROUND(sp, items) \ argument
143 ((15 + (unsigned long) ((sp) + (items))) &~ 15UL)
144 #define STACK_ALLOC(sp, len) ({ \ argument
145 elf_addr_t __user *old_sp = (elf_addr_t __user *)sp; sp += len; \
148 #define STACK_ADD(sp, items) ((elf_addr_t __user *)(sp) - (items)) argument
149 #define STACK_ROUND(sp, items) \ argument
150 (((unsigned long) (sp - items)) &~ 15UL)
151 #define STACK_ALLOC(sp, len) ({ sp -= len ; sp; }) argument
170 elf_addr_t __user *sp; in create_elf_tables() local
[all …]
Dexec.c813 unsigned long index, stop, sp; in transfer_args_to_stack() local
817 sp = *sp_location; in transfer_args_to_stack()
822 sp -= PAGE_SIZE - offset; in transfer_args_to_stack()
823 if (copy_to_user((void *) sp, src, PAGE_SIZE - offset) != 0) in transfer_args_to_stack()
830 *sp_location = sp; in transfer_args_to_stack()
/fs/jfs/
Djfs_dtree.c175 static void dtMoveEntry(dtpage_t * sp, int si, dtpage_t * dp,
924 dtpage_t *sp; /* split page */ in dtSplitUp() local
946 sp = DT_PAGE(ip, smp); in dtSplitUp()
964 if (sp->header.flag & BT_ROOT) { in dtSplitUp()
971 n -= DTROOTMAXSLOT - sp->header.freecnt; /* header + entries */ in dtSplitUp()
1006 pxd = &sp->header.self; in dtSplitUp()
1013 if ((n + sp->header.freecnt) <= split->nslot) in dtSplitUp()
1120 lp = sp; in dtSplitUp()
1126 DT_GETPAGE(ip, parent->bn, smp, PSIZE, sp, rc); in dtSplitUp()
1171 if ((sp->header.flag & BT_ROOT && skip > 1) || in dtSplitUp()
[all …]
Djfs_xtree.c680 xtpage_t *sp; /* split page */ in xtSplitUp() local
699 sp = XT_PAGE(ip, smp); in xtSplitUp()
702 if ((sp->header.flag & BT_ROOT) && (!S_ISDIR(ip->i_mode)) && in xtSplitUp()
703 (le16_to_cpu(sp->header.maxentry) < XTROOTMAXSLOT) && in xtSplitUp()
705 sp->header.maxentry = cpu_to_le16(XTROOTMAXSLOT); in xtSplitUp()
717 nextindex = le16_to_cpu(sp->header.nextindex); in xtSplitUp()
719 memmove(&sp->xad[skip + 1], &sp->xad[skip], in xtSplitUp()
723 xad = &sp->xad[skip]; in xtSplitUp()
728 le16_add_cpu(&sp->header.nextindex, 1); in xtSplitUp()
737 le16_to_cpu(sp->header.nextindex) - in xtSplitUp()
[all …]
/fs/xfs/
Dxfs_linux.h106 #define current_set_flags_nested(sp, f) \ argument
107 (*(sp) = current->flags, current->flags |= (f))
108 #define current_clear_flags_nested(sp, f) \ argument
109 (*(sp) = current->flags, current->flags &= ~(f))
110 #define current_restore_flags_nested(sp, f) \ argument
111 (current->flags = ((current->flags & ~(f)) | (*(sp) & (f))))
/fs/jffs2/
Dsummary.c391 void *sp; in jffs2_sum_process_sum_data() local
395 sp = summary->sum; in jffs2_sum_process_sum_data()
407 switch (je16_to_cpu(((struct jffs2_sum_unknown_flash *)sp)->nodetype)) { in jffs2_sum_process_sum_data()
410 spi = sp; in jffs2_sum_process_sum_data()
429 sp += JFFS2_SUMMARY_INODE_SIZE; in jffs2_sum_process_sum_data()
437 spd = sp; in jffs2_sum_process_sum_data()
486 sp += JFFS2_SUMMARY_DIRENT_SIZE(spd->nsize); in jffs2_sum_process_sum_data()
495 spx = (struct jffs2_sum_xattr_flash *)sp; in jffs2_sum_process_sum_data()
518 sp += JFFS2_SUMMARY_XATTR_SIZE; in jffs2_sum_process_sum_data()
526 spr = (struct jffs2_sum_xref_flash *)sp; in jffs2_sum_process_sum_data()
[all …]
/fs/xfs/libxfs/
Dxfs_rtbitmap.c458 xfs_suminfo_t *sp; /* pointer to returned data */ in xfs_rtmodify_summary_int() local
495 sp = XFS_SUMPTR(mp, bp, so); in xfs_rtmodify_summary_int()
497 uint first = (uint)((char *)sp - (char *)bp->b_addr); in xfs_rtmodify_summary_int()
499 *sp += delta; in xfs_rtmodify_summary_int()
501 if (*sp == 0 && log == mp->m_rsum_cache[bbno]) in xfs_rtmodify_summary_int()
503 if (*sp != 0 && log < mp->m_rsum_cache[bbno]) in xfs_rtmodify_summary_int()
506 xfs_trans_log_buf(tp, bp, first, first + sizeof(*sp) - 1); in xfs_rtmodify_summary_int()
509 *sum = *sp; in xfs_rtmodify_summary_int()
Dxfs_ialloc_btree.c195 rec->inobt.ir_u.sp.ir_holemask = in xfs_inobt_init_rec_from_cur()
197 rec->inobt.ir_u.sp.ir_count = cur->bc_rec.i.ir_count; in xfs_inobt_init_rec_from_cur()
198 rec->inobt.ir_u.sp.ir_freecount = cur->bc_rec.i.ir_freecount; in xfs_inobt_init_rec_from_cur()
Dxfs_ialloc.c62 rec.inobt.ir_u.sp.ir_holemask = cpu_to_be16(irec->ir_holemask); in xfs_inobt_update()
63 rec.inobt.ir_u.sp.ir_count = irec->ir_count; in xfs_inobt_update()
64 rec.inobt.ir_u.sp.ir_freecount = irec->ir_freecount; in xfs_inobt_update()
82 irec->ir_holemask = be16_to_cpu(rec->inobt.ir_u.sp.ir_holemask); in xfs_inobt_btrec_to_irec()
83 irec->ir_count = rec->inobt.ir_u.sp.ir_count; in xfs_inobt_btrec_to_irec()
84 irec->ir_freecount = rec->inobt.ir_u.sp.ir_freecount; in xfs_inobt_btrec_to_irec()
Dxfs_format.h1307 } sp; member
/fs/unicode/
Dutf8-norm.c594 u8c->sp = NULL; in utf8ncursor()
740 u8c->sp = u8c->p; in utf8byte()
756 u8c->p = u8c->sp; in utf8byte()
762 u8c->sp = NULL; in utf8byte()
Dutf8n.h82 const char *sp; member
Dmkutf8data.c2971 const char *sp; member
3001 u8c->sp = NULL; in utf8ncursor()
3143 u8c->sp = u8c->p; in utf8byte()
3159 u8c->p = u8c->sp; in utf8byte()
3165 u8c->sp = NULL; in utf8byte()
/fs/btrfs/
Dinode.c10645 struct btrfs_swapfile_pin *sp, *entry; in btrfs_add_swapfile_pin() local
10649 sp = kmalloc(sizeof(*sp), GFP_NOFS); in btrfs_add_swapfile_pin()
10650 if (!sp) in btrfs_add_swapfile_pin()
10652 sp->ptr = ptr; in btrfs_add_swapfile_pin()
10653 sp->inode = inode; in btrfs_add_swapfile_pin()
10654 sp->is_block_group = is_block_group; in btrfs_add_swapfile_pin()
10661 if (sp->ptr < entry->ptr || in btrfs_add_swapfile_pin()
10662 (sp->ptr == entry->ptr && sp->inode < entry->inode)) { in btrfs_add_swapfile_pin()
10664 } else if (sp->ptr > entry->ptr || in btrfs_add_swapfile_pin()
10665 (sp->ptr == entry->ptr && sp->inode > entry->inode)) { in btrfs_add_swapfile_pin()
[all …]
Dvolumes.c7866 struct btrfs_swapfile_pin *sp; in btrfs_pinned_by_swapfile() local
7872 sp = rb_entry(node, struct btrfs_swapfile_pin, node); in btrfs_pinned_by_swapfile()
7873 if (ptr < sp->ptr) in btrfs_pinned_by_swapfile()
7875 else if (ptr > sp->ptr) in btrfs_pinned_by_swapfile()
/fs/nfs/blocklayout/
Dblocklayout.c572 static int decode_sector_number(__be32 **rp, sector_t *sp) in decode_sector_number() argument
581 *sp = s >> SECTOR_SHIFT; in decode_sector_number()
/fs/proc/
Dbase.c644 info.data.nr, info.sp, info.data.instruction_pointer); in proc_pid_syscall()
650 info.sp, info.data.instruction_pointer); in proc_pid_syscall()