Home
last modified time | relevance | path

Searched refs:new (Results 1 – 25 of 109) sorted by relevance

12345

/fs/nfsd/
Dauth.c32 struct cred *new; in nfsd_setuser() local
39 new = prepare_creds(); in nfsd_setuser()
40 if (!new) in nfsd_setuser()
43 new->fsuid = rqstp->rq_cred.cr_uid; in nfsd_setuser()
44 new->fsgid = rqstp->rq_cred.cr_gid; in nfsd_setuser()
49 new->fsuid = exp->ex_anon_uid; in nfsd_setuser()
50 new->fsgid = exp->ex_anon_gid; in nfsd_setuser()
55 if (!new->fsuid) in nfsd_setuser()
56 new->fsuid = exp->ex_anon_uid; in nfsd_setuser()
57 if (!new->fsgid) in nfsd_setuser()
[all …]
Dexport.c88 static struct svc_expkey *svc_expkey_update(struct svc_expkey *new, struct svc_expkey *old);
215 struct svc_expkey *new = container_of(b, struct svc_expkey, h); in expkey_match() local
217 if (orig->ek_fsidtype != new->ek_fsidtype || in expkey_match()
218 orig->ek_client != new->ek_client || in expkey_match()
219 memcmp(orig->ek_fsid, new->ek_fsid, key_len(orig->ek_fsidtype)) != 0) in expkey_match()
227 struct svc_expkey *new = container_of(cnew, struct svc_expkey, h); in expkey_init() local
231 new->ek_client = item->ek_client; in expkey_init()
232 new->ek_fsidtype = item->ek_fsidtype; in expkey_init()
234 memcpy(new->ek_fsid, item->ek_fsid, sizeof(new->ek_fsid)); in expkey_init()
240 struct svc_expkey *new = container_of(cnew, struct svc_expkey, h); in expkey_update() local
[all …]
Dnfs4idmap.c85 struct ent *new = container_of(cnew, struct ent, h); in ent_init() local
88 new->id = itm->id; in ent_init()
89 new->type = itm->type; in ent_init()
91 strlcpy(new->name, itm->name, sizeof(new->name)); in ent_init()
92 strlcpy(new->authname, itm->authname, sizeof(new->name)); in ent_init()
290 idtoname_update(struct ent *new, struct ent *old) in idtoname_update() argument
293 &new->h, &old->h, in idtoname_update()
294 idtoname_hash(new)); in idtoname_update()
452 nametoid_update(struct ent *new, struct ent *old) in nametoid_update() argument
455 &new->h, &old->h, in nametoid_update()
[all …]
Dnfs4recover.c60 struct cred *new; in nfs4_save_creds() local
62 new = prepare_creds(); in nfs4_save_creds()
63 if (!new) in nfs4_save_creds()
66 new->fsuid = 0; in nfs4_save_creds()
67 new->fsgid = 0; in nfs4_save_creds()
68 *original_creds = override_creds(new); in nfs4_save_creds()
69 put_cred(new); in nfs4_save_creds()
/fs/nfs/
Dnfs4state.c141 static void nfs_alloc_unique_id(struct rb_root *root, struct nfs_unique_id *new, in nfs_alloc_unique_id() argument
152 get_random_bytes(&new->id, sizeof(new->id)); in nfs_alloc_unique_id()
153 new->id &= mask; in nfs_alloc_unique_id()
154 if (new->id < minval) in nfs_alloc_unique_id()
155 new->id += minval; in nfs_alloc_unique_id()
164 if (new->id < pos->id) in nfs_alloc_unique_id()
166 else if (new->id > pos->id) in nfs_alloc_unique_id()
171 rb_link_node(&new->rb_node, parent, p); in nfs_alloc_unique_id()
172 rb_insert_color(&new->rb_node, root); in nfs_alloc_unique_id()
176 new->id++; in nfs_alloc_unique_id()
[all …]
Dread.c118 struct nfs_page *new; in nfs_readpage_async() local
124 new = nfs_create_request(ctx, inode, page, 0, len); in nfs_readpage_async()
125 if (IS_ERR(new)) { in nfs_readpage_async()
127 return PTR_ERR(new); in nfs_readpage_async()
132 nfs_list_add_request(new, &one_request); in nfs_readpage_async()
532 struct nfs_page *new; in readpage_async_filler() local
540 new = nfs_create_request(desc->ctx, inode, page, 0, len); in readpage_async_filler()
541 if (IS_ERR(new)) in readpage_async_filler()
546 if (!nfs_pageio_add_request(desc->pgio, new)) { in readpage_async_filler()
552 error = PTR_ERR(new); in readpage_async_filler()
/fs/lockd/
Dmon.c288 struct nsm_handle *new; in nsm_create_handle() local
290 new = kzalloc(sizeof(*new) + hostname_len + 1, GFP_KERNEL); in nsm_create_handle()
291 if (unlikely(new == NULL)) in nsm_create_handle()
294 atomic_set(&new->sm_count, 1); in nsm_create_handle()
295 new->sm_name = (char *)(new + 1); in nsm_create_handle()
296 memcpy(nsm_addr(new), sap, salen); in nsm_create_handle()
297 new->sm_addrlen = salen; in nsm_create_handle()
298 nsm_init_private(new); in nsm_create_handle()
299 nsm_display_address((const struct sockaddr *)&new->sm_addr, in nsm_create_handle()
300 new->sm_addrbuf, sizeof(new->sm_addrbuf)); in nsm_create_handle()
[all …]
Dclntproc.c96 struct nlm_lockowner *res, *new = NULL; in nlm_find_lockowner() local
102 new = kmalloc(sizeof(*new), GFP_KERNEL); in nlm_find_lockowner()
105 if (res == NULL && new != NULL) { in nlm_find_lockowner()
106 res = new; in nlm_find_lockowner()
107 atomic_set(&new->count, 1); in nlm_find_lockowner()
108 new->owner = owner; in nlm_find_lockowner()
109 new->pid = __nlm_alloc_pid(host); in nlm_find_lockowner()
110 new->host = nlm_get_host(host); in nlm_find_lockowner()
111 list_add(&new->list, &host->h_lockowners); in nlm_find_lockowner()
112 new = NULL; in nlm_find_lockowner()
[all …]
/fs/xfs/
Dxfs_bmap.c102 xfs_bmbt_irec_t *new, /* new data to add to file extents */
119 xfs_bmbt_irec_t *new, /* new data to add to file extents */
135 xfs_bmbt_irec_t *new, /* new data to add to file extents */
149 xfs_bmbt_irec_t *new, /* new data to add to file extents */
163 xfs_bmbt_irec_t *new, /* new data to add to file extents */
200 xfs_bmbt_irec_t *new, /* new data to add to file extents */
564 xfs_bmbt_irec_t *new, /* new data to add to file extents */ in xfs_bmap_add_extent() argument
593 XFS_BMAP_TRACE_INSERT("insert empty", ip, 0, 1, new, NULL, in xfs_bmap_add_extent()
595 xfs_iext_insert(ifp, 0, 1, new); in xfs_bmap_add_extent()
598 if (!isnullstartblock(new->br_startblock)) { in xfs_bmap_add_extent()
[all …]
Dxfs_fsops.c137 xfs_rfsblock_t new; in xfs_growfs_data_private() local
158 new = nb; /* use new as a temporary here */ in xfs_growfs_data_private()
159 nb_mod = do_div(new, mp->m_sb.sb_agblocks); in xfs_growfs_data_private()
160 nagcount = new + (nb_mod != 0); in xfs_growfs_data_private()
167 new = nb - mp->m_sb.sb_dblocks; in xfs_growfs_data_private()
191 for (agno = nagcount - 1; agno >= oagcount; agno--, new -= agsize) { in xfs_growfs_data_private()
313 if (new) { in xfs_growfs_data_private()
323 be32_add_cpu(&agi->agi_length, new); in xfs_growfs_data_private()
336 be32_add_cpu(&agf->agf_length, new); in xfs_growfs_data_private()
344 be32_to_cpu(agf->agf_length) - new), new); in xfs_growfs_data_private()
/fs/dlm/
Dmember.c21 static void add_ordered_member(struct dlm_ls *ls, struct dlm_member *new) in add_ordered_member() argument
25 struct list_head *newlist = &new->list; in add_ordered_member()
30 if (new->nodeid < memb->nodeid) in add_ordered_member()
218 if (!dlm_is_member(ls, rv->new[i])) in dlm_recover_members()
220 log_debug(ls, "new nodeid %d is a re-added member", rv->new[i]); in dlm_recover_members()
225 memb->nodeid = rv->new[i]; in dlm_recover_members()
271 int new; in dlm_ls_stop() local
294 new = test_and_clear_bit(LSFL_RUNNING, &ls->ls_flags); in dlm_ls_stop()
313 if (new) in dlm_ls_stop()
334 int *ids = NULL, *new = NULL; in dlm_ls_start() local
[all …]
/fs/proc/
Dvmcore.c227 struct vmcore *new; in merge_note_headers_elf64() local
254 new = get_new_element(); in merge_note_headers_elf64()
255 if (!new) { in merge_note_headers_elf64()
259 new->paddr = phdr_ptr->p_offset; in merge_note_headers_elf64()
260 new->size = real_sz; in merge_note_headers_elf64()
261 list_add_tail(&new->list, vc_list); in merge_note_headers_elf64()
308 struct vmcore *new; in merge_note_headers_elf32() local
335 new = get_new_element(); in merge_note_headers_elf32()
336 if (!new) { in merge_note_headers_elf32()
340 new->paddr = phdr_ptr->p_offset; in merge_note_headers_elf32()
[all …]
/fs/fat/
Dcache.c118 struct fat_cache_id *new) in fat_cache_merge() argument
124 if (p->fcluster == new->fcluster) { in fat_cache_merge()
125 BUG_ON(p->dcluster != new->dcluster); in fat_cache_merge()
126 if (new->nr_contig > p->nr_contig) in fat_cache_merge()
127 p->nr_contig = new->nr_contig; in fat_cache_merge()
134 static void fat_cache_add(struct inode *inode, struct fat_cache_id *new) in fat_cache_add() argument
138 if (new->fcluster == -1) /* dummy cache */ in fat_cache_add()
142 if (new->id != FAT_CACHE_VALID && in fat_cache_add()
143 new->id != MSDOS_I(inode)->cache_valid_id) in fat_cache_add()
146 cache = fat_cache_merge(inode, new); in fat_cache_add()
[all …]
Dfatent.c153 static void fat12_ent_put(struct fat_entry *fatent, int new) in fat12_ent_put() argument
157 if (new == FAT_ENT_EOF) in fat12_ent_put()
158 new = EOF_FAT12; in fat12_ent_put()
162 *ent12_p[0] = (new << 4) | (*ent12_p[0] & 0x0f); in fat12_ent_put()
163 *ent12_p[1] = new >> 4; in fat12_ent_put()
165 *ent12_p[0] = new & 0xff; in fat12_ent_put()
166 *ent12_p[1] = (*ent12_p[1] & 0xf0) | (new >> 8); in fat12_ent_put()
175 static void fat16_ent_put(struct fat_entry *fatent, int new) in fat16_ent_put() argument
177 if (new == FAT_ENT_EOF) in fat16_ent_put()
178 new = EOF_FAT16; in fat16_ent_put()
[all …]
/fs/jffs2/
Dnodelist.c25 void jffs2_add_fd_to_list(struct jffs2_sb_info *c, struct jffs2_full_dirent *new, struct jffs2_full… in jffs2_add_fd_to_list() argument
29 dbg_dentlist("add dirent \"%s\", ino #%u\n", new->name, new->ino); in jffs2_add_fd_to_list()
31 while ((*prev) && (*prev)->nhash <= new->nhash) { in jffs2_add_fd_to_list()
32 if ((*prev)->nhash == new->nhash && !strcmp((*prev)->name, new->name)) { in jffs2_add_fd_to_list()
34 if (new->version < (*prev)->version) { in jffs2_add_fd_to_list()
37 jffs2_mark_node_obsolete(c, new->raw); in jffs2_add_fd_to_list()
38 jffs2_free_full_dirent(new); in jffs2_add_fd_to_list()
42 new->next = (*prev)->next; in jffs2_add_fd_to_list()
48 *prev = new; in jffs2_add_fd_to_list()
54 new->next = *prev; in jffs2_add_fd_to_list()
[all …]
/fs/ocfs2/
Duptodate.c263 struct ocfs2_meta_cache_item *new) in __ocfs2_insert_cache_tree() argument
265 sector_t block = new->c_block; in __ocfs2_insert_cache_tree()
290 rb_link_node(&new->c_node, parent, p); in __ocfs2_insert_cache_tree()
291 rb_insert_color(&new->c_node, &ci->ci_cache.ci_tree); in __ocfs2_insert_cache_tree()
349 struct ocfs2_meta_cache_item *new = NULL; in __ocfs2_set_buffer_uptodate() local
357 new = kmem_cache_alloc(ocfs2_uptodate_cachep, GFP_NOFS); in __ocfs2_set_buffer_uptodate()
358 if (!new) { in __ocfs2_set_buffer_uptodate()
362 new->c_block = block; in __ocfs2_set_buffer_uptodate()
392 __ocfs2_insert_cache_tree(ci, new); in __ocfs2_set_buffer_uptodate()
395 new = NULL; in __ocfs2_set_buffer_uptodate()
[all …]
Daops.c787 unsigned int to, int new) in ocfs2_map_page_blocks() argument
818 if (new) in ocfs2_map_page_blocks()
849 if (ret == 0 || !new) in ocfs2_map_page_blocks()
1075 int new) in ocfs2_prepare_page_for_write() argument
1089 if (new) in ocfs2_prepare_page_for_write()
1092 new); in ocfs2_prepare_page_for_write()
1095 map_from, map_to, new); in ocfs2_prepare_page_for_write()
1103 if (new) { in ocfs2_prepare_page_for_write()
1113 BUG_ON(!new); in ocfs2_prepare_page_for_write()
1119 cluster_start, cluster_end, new); in ocfs2_prepare_page_for_write()
[all …]
/fs/xfs/linux-2.6/
Dkmem.c106 void *new; in kmem_realloc() local
108 new = kmem_alloc(newsize, flags); in kmem_realloc()
110 if (new) in kmem_realloc()
111 memcpy(new, ptr, in kmem_realloc()
115 return new; in kmem_realloc()
/fs/bfs/
Dfile.c38 struct buffer_head *bh, *new; in bfs_move_block() local
43 new = sb_getblk(sb, to); in bfs_move_block()
44 memcpy(new->b_data, bh->b_data, bh->b_size); in bfs_move_block()
45 mark_buffer_dirty(new); in bfs_move_block()
47 brelse(new); in bfs_move_block()
/fs/
Dfcntl.c526 struct fasync_struct *new = NULL; in fasync_helper() local
530 new = kmem_cache_alloc(fasync_cache, GFP_KERNEL); in fasync_helper()
531 if (!new) in fasync_helper()
539 kmem_cache_free(fasync_cache, new); in fasync_helper()
550 new->magic = FASYNC_MAGIC; in fasync_helper()
551 new->fa_file = filp; in fasync_helper()
552 new->fa_fd = fd; in fasync_helper()
553 new->fa_next = *fapp; in fasync_helper()
554 *fapp = new; in fasync_helper()
Dlocks.c211 static void locks_copy_private(struct file_lock *new, struct file_lock *fl) in locks_copy_private() argument
215 fl->fl_ops->fl_copy_lock(new, fl); in locks_copy_private()
216 new->fl_ops = fl->fl_ops; in locks_copy_private()
220 fl->fl_lmops->fl_copy_lock(new, fl); in locks_copy_private()
221 new->fl_lmops = fl->fl_lmops; in locks_copy_private()
228 void __locks_copy_lock(struct file_lock *new, const struct file_lock *fl) in __locks_copy_lock() argument
230 new->fl_owner = fl->fl_owner; in __locks_copy_lock()
231 new->fl_pid = fl->fl_pid; in __locks_copy_lock()
232 new->fl_file = NULL; in __locks_copy_lock()
233 new->fl_flags = fl->fl_flags; in __locks_copy_lock()
[all …]
Dnamespace.c2180 struct path new, old, parent_path, root_parent, root; in SYSCALL_DEFINE2() local
2186 error = user_path_dir(new_root, &new); in SYSCALL_DEFINE2()
2190 if (!check_mnt(new.mnt)) in SYSCALL_DEFINE2()
2197 error = security_sb_pivotroot(&old, &new); in SYSCALL_DEFINE2()
2211 IS_MNT_SHARED(new.mnt->mnt_parent) || in SYSCALL_DEFINE2()
2217 if (IS_DEADDIR(new.dentry->d_inode)) in SYSCALL_DEFINE2()
2219 if (d_unhashed(new.dentry) && !IS_ROOT(new.dentry)) in SYSCALL_DEFINE2()
2224 if (new.mnt == root.mnt || in SYSCALL_DEFINE2()
2232 if (new.mnt->mnt_root != new.dentry) in SYSCALL_DEFINE2()
2234 if (new.mnt->mnt_parent == new.mnt) in SYSCALL_DEFINE2()
[all …]
/fs/adfs/
Ddir_f.c188 if (dir->dirhead.startmasseq != dir->dirtail.new.endmasseq || in adfs_dir_read()
189 memcmp(&dir->dirhead.startname, &dir->dirtail.new.endname, 4)) in adfs_dir_read()
196 if (adfs_dir_checkbyte(dir) != dir->dirtail.new.dircheckbyte) in adfs_dir_read()
355 dir->parent_id = adfs_readval(dir->dirtail.new.dirparent, 3); in adfs_f_read()
415 if (dir->dirhead.startmasseq != dir->dirtail.new.endmasseq || in adfs_f_update()
416 memcmp(&dir->dirhead.startname, &dir->dirtail.new.endname, 4)) in adfs_f_update()
423 if (adfs_dir_checkbyte(dir) != dir->dirtail.new.dircheckbyte) in adfs_f_update()
/fs/notify/inotify/
Dinotify.c812 s32 inotify_clone_watch(struct inotify_watch *old, struct inotify_watch *new) in inotify_clone_watch() argument
817 new->mask = old->mask; in inotify_clone_watch()
818 new->ih = ih; in inotify_clone_watch()
823 ret = inotify_handle_get_wd(ih, new); in inotify_clone_watch()
826 ret = new->wd; in inotify_clone_watch()
830 new->inode = igrab(old->inode); in inotify_clone_watch()
832 list_add(&new->h_list, &ih->watches); in inotify_clone_watch()
833 list_add(&new->i_list, &old->inode->inotify_watches); in inotify_clone_watch()
/fs/hppfs/
Dhppfs.c141 struct dentry *proc_dentry, *new, *parent; in hppfs_lookup() local
161 new = (*parent->d_inode->i_op->lookup)(parent->d_inode, in hppfs_lookup()
163 if (new) { in hppfs_lookup()
165 proc_dentry = new; in hppfs_lookup()
341 struct hppfs_data *data, *new, *head; in hppfs_get_data() local
382 new = kmalloc(sizeof(*data), GFP_KERNEL); in hppfs_get_data()
383 if (new == 0) { in hppfs_get_data()
390 INIT_LIST_HEAD(&new->list); in hppfs_get_data()
391 list_add(&new->list, &data->list); in hppfs_get_data()
392 data = new; in hppfs_get_data()

12345