Home
last modified time | relevance | path

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

1234567

/fs/nfsd/
Dauth.c24 struct cred *new; in nfsd_setuser() local
32 new = prepare_creds(); in nfsd_setuser()
33 if (!new) in nfsd_setuser()
36 new->fsuid = rqstp->rq_cred.cr_uid; in nfsd_setuser()
37 new->fsgid = rqstp->rq_cred.cr_gid; in nfsd_setuser()
42 new->fsuid = exp->ex_anon_uid; in nfsd_setuser()
43 new->fsgid = exp->ex_anon_gid; in nfsd_setuser()
48 if (uid_eq(new->fsuid, GLOBAL_ROOT_UID)) in nfsd_setuser()
49 new->fsuid = exp->ex_anon_uid; in nfsd_setuser()
50 if (gid_eq(new->fsgid, GLOBAL_ROOT_GID)) in nfsd_setuser()
[all …]
Dexport.c66 static struct svc_expkey *svc_expkey_update(struct cache_detail *cd, struct svc_expkey *new,
193 struct svc_expkey *new = container_of(b, struct svc_expkey, h); in expkey_match() local
195 if (orig->ek_fsidtype != new->ek_fsidtype || in expkey_match()
196 orig->ek_client != new->ek_client || in expkey_match()
197 memcmp(orig->ek_fsid, new->ek_fsid, key_len(orig->ek_fsidtype)) != 0) in expkey_match()
205 struct svc_expkey *new = container_of(cnew, struct svc_expkey, h); in expkey_init() local
209 new->ek_client = item->ek_client; in expkey_init()
210 new->ek_fsidtype = item->ek_fsidtype; in expkey_init()
212 memcpy(new->ek_fsid, item->ek_fsid, sizeof(new->ek_fsid)); in expkey_init()
218 struct svc_expkey *new = container_of(cnew, struct svc_expkey, h); in expkey_update() local
[all …]
/fs/nfs/blocklayout/
Dextent_tree.c136 struct pnfs_block_extent *new, bool merge_ok) in __ext_tree_insert() argument
145 if (new->be_f_offset < be->be_f_offset) { in __ext_tree_insert()
146 if (merge_ok && ext_can_merge(new, be)) { in __ext_tree_insert()
147 be->be_f_offset = new->be_f_offset; in __ext_tree_insert()
149 be->be_v_offset = new->be_v_offset; in __ext_tree_insert()
150 be->be_length += new->be_length; in __ext_tree_insert()
155 } else if (new->be_f_offset >= ext_f_end(be)) { in __ext_tree_insert()
156 if (merge_ok && ext_can_merge(be, new)) { in __ext_tree_insert()
157 be->be_length += new->be_length; in __ext_tree_insert()
167 rb_link_node(&new->be_node, parent, p); in __ext_tree_insert()
[all …]
/fs/cachefiles/
Dsecurity.c22 struct cred *new; in cachefiles_get_security_ID() local
27 new = prepare_kernel_cred(current); in cachefiles_get_security_ID()
28 if (!new) { in cachefiles_get_security_ID()
34 ret = set_security_override_from_ctx(new, cache->secctx); in cachefiles_get_security_ID()
36 put_cred(new); in cachefiles_get_security_ID()
43 cache->cache_cred = new; in cachefiles_get_security_ID()
83 struct cred *new; in cachefiles_determine_cache_security() local
90 new = prepare_creds(); in cachefiles_determine_cache_security()
91 if (!new) in cachefiles_determine_cache_security()
98 ret = set_create_files_as(new, d_backing_inode(root)); in cachefiles_determine_cache_security()
[all …]
/fs/lockd/
Dmon.c274 struct nsm_handle *new; in nsm_create_handle() local
276 new = kzalloc(sizeof(*new) + hostname_len + 1, GFP_KERNEL); in nsm_create_handle()
277 if (unlikely(new == NULL)) in nsm_create_handle()
280 atomic_set(&new->sm_count, 1); in nsm_create_handle()
281 new->sm_name = (char *)(new + 1); in nsm_create_handle()
282 memcpy(nsm_addr(new), sap, salen); in nsm_create_handle()
283 new->sm_addrlen = salen; in nsm_create_handle()
284 nsm_init_private(new); in nsm_create_handle()
286 if (rpc_ntop(nsm_addr(new), new->sm_addrbuf, in nsm_create_handle()
287 sizeof(new->sm_addrbuf)) == 0) in nsm_create_handle()
[all …]
Dclntproc.c97 struct nlm_lockowner *res, *new = NULL; in nlm_find_lockowner() local
103 new = kmalloc(sizeof(*new), GFP_KERNEL); in nlm_find_lockowner()
106 if (res == NULL && new != NULL) { in nlm_find_lockowner()
107 res = new; in nlm_find_lockowner()
108 atomic_set(&new->count, 1); in nlm_find_lockowner()
109 new->owner = owner; in nlm_find_lockowner()
110 new->pid = __nlm_alloc_pid(host); in nlm_find_lockowner()
111 new->host = nlm_get_host(host); in nlm_find_lockowner()
112 list_add(&new->list, &host->h_lockowners); in nlm_find_lockowner()
113 new = NULL; in nlm_find_lockowner()
[all …]
/fs/xfs/
Dxfs_extent_busy.c42 struct xfs_extent_busy *new; in xfs_extent_busy_insert() local
48 new = kmem_zalloc(sizeof(struct xfs_extent_busy), KM_SLEEP); in xfs_extent_busy_insert()
49 new->agno = agno; in xfs_extent_busy_insert()
50 new->bno = bno; in xfs_extent_busy_insert()
51 new->length = len; in xfs_extent_busy_insert()
52 INIT_LIST_HEAD(&new->list); in xfs_extent_busy_insert()
53 new->flags = flags; in xfs_extent_busy_insert()
58 pag = xfs_perag_get(tp->t_mountp, new->agno); in xfs_extent_busy_insert()
65 if (new->bno < busyp->bno) { in xfs_extent_busy_insert()
67 ASSERT(new->bno + new->length <= busyp->bno); in xfs_extent_busy_insert()
[all …]
/fs/xfs/libxfs/
Dxfs_bmap.c601 struct xfs_extent_free_item *new; /* new element */ in xfs_bmap_add_free() local
619 new = kmem_zone_alloc(xfs_bmap_free_item_zone, KM_SLEEP); in xfs_bmap_add_free()
620 new->xefi_startblock = bno; in xfs_bmap_add_free()
621 new->xefi_blockcount = (xfs_extlen_t)len; in xfs_bmap_add_free()
623 new->xefi_oinfo = *oinfo; in xfs_bmap_add_free()
625 xfs_rmap_skip_owner_update(&new->xefi_oinfo); in xfs_bmap_add_free()
628 xfs_defer_add(dfops, XFS_DEFER_OPS_TYPE_FREE, &new->xefi_list); in xfs_bmap_add_free()
1731 struct xfs_bmbt_irec *new = &bma->got; in xfs_bmap_add_extent_delay_real() local
1758 ASSERT(!isnullstartblock(new->br_startblock)); in xfs_bmap_add_extent_delay_real()
1776 new_endoff = new->br_startoff + new->br_blockcount; in xfs_bmap_add_extent_delay_real()
[all …]
/fs/fat/
Dcache.c117 struct fat_cache_id *new) in fat_cache_merge() argument
123 if (p->fcluster == new->fcluster) { in fat_cache_merge()
124 BUG_ON(p->dcluster != new->dcluster); in fat_cache_merge()
125 if (new->nr_contig > p->nr_contig) in fat_cache_merge()
126 p->nr_contig = new->nr_contig; in fat_cache_merge()
133 static void fat_cache_add(struct inode *inode, struct fat_cache_id *new) in fat_cache_add() argument
137 if (new->fcluster == -1) /* dummy cache */ in fat_cache_add()
141 if (new->id != FAT_CACHE_VALID && in fat_cache_add()
142 new->id != MSDOS_I(inode)->cache_valid_id) in fat_cache_add()
145 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/nfs/
Dread.c108 struct nfs_page *new; in nfs_readpage_async() local
116 new = nfs_create_request(ctx, page, NULL, 0, len); in nfs_readpage_async()
117 if (IS_ERR(new)) { in nfs_readpage_async()
119 return PTR_ERR(new); in nfs_readpage_async()
126 if (!nfs_pageio_add_request(&pgio, new)) { in nfs_readpage_async()
127 nfs_list_remove_request(new); in nfs_readpage_async()
128 nfs_readpage_release(new); in nfs_readpage_async()
352 struct nfs_page *new; in readpage_async_filler() local
360 new = nfs_create_request(desc->ctx, page, NULL, 0, len); in readpage_async_filler()
361 if (IS_ERR(new)) in readpage_async_filler()
[all …]
Ddns_resolve.c73 struct nfs_dns_ent *new; in nfs_dns_ent_update() local
76 new = container_of(cnew, struct nfs_dns_ent, h); in nfs_dns_ent_update()
79 memcpy(&new->addr, &key->addr, key->addrlen); in nfs_dns_ent_update()
80 new->addrlen = key->addrlen; in nfs_dns_ent_update()
86 struct nfs_dns_ent *new; in nfs_dns_ent_init() local
89 new = container_of(cnew, struct nfs_dns_ent, h); in nfs_dns_ent_init()
92 kfree(new->hostname); in nfs_dns_ent_init()
93 new->hostname = kstrndup(key->hostname, key->namelen, GFP_KERNEL); in nfs_dns_ent_init()
94 if (new->hostname) { in nfs_dns_ent_init()
95 new->namelen = key->namelen; in nfs_dns_ent_init()
[all …]
Dnfs4client.c75 struct nfs4_ds_server *new) in nfs4_add_ds_client() argument
85 if (new) in nfs4_add_ds_client()
86 list_add_rcu(&new->list, &ds_clp->cl_ds_clients); in nfs4_add_ds_client()
87 dss = new; in nfs4_add_ds_client()
127 struct nfs4_ds_server *dss, *new; in nfs4_find_or_create_ds_client() local
133 new = nfs4_alloc_ds_server(ds_clp, flavor); in nfs4_find_or_create_ds_client()
134 if (IS_ERR(new)) in nfs4_find_or_create_ds_client()
135 return ERR_CAST(new); in nfs4_find_or_create_ds_client()
136 dss = nfs4_add_ds_client(ds_clp, flavor, new); in nfs4_find_or_create_ds_client()
137 if (dss != new) in nfs4_find_or_create_ds_client()
[all …]
Dnfs4super.c174 struct nfs_referral_count *p, *new; in nfs_referral_loop_protect() local
177 new = kmalloc(sizeof(*new), GFP_KERNEL); in nfs_referral_loop_protect()
178 if (!new) in nfs_referral_loop_protect()
180 new->task = current; in nfs_referral_loop_protect()
181 new->referral_count = 1; in nfs_referral_loop_protect()
192 list_add(&new->list, &nfs_referral_count_list); in nfs_referral_loop_protect()
193 new = NULL; in nfs_referral_loop_protect()
196 kfree(new); in nfs_referral_loop_protect()
Dnfs4state.c162 struct rpc_cred *cred, *new; in nfs4_root_machine_cred() local
164 new = rpc_lookup_machine_cred(NULL); in nfs4_root_machine_cred()
167 clp->cl_machine_cred = new; in nfs4_root_machine_cred()
411 nfs4_insert_state_owner_locked(struct nfs4_state_owner *new) in nfs4_insert_state_owner_locked() argument
413 struct nfs_server *server = new->so_server; in nfs4_insert_state_owner_locked()
423 if (new->so_cred < sp->so_cred) in nfs4_insert_state_owner_locked()
425 else if (new->so_cred > sp->so_cred) in nfs4_insert_state_owner_locked()
434 err = ida_get_new(&server->openowner_id, &new->so_seqid.owner_id); in nfs4_insert_state_owner_locked()
437 rb_link_node(&new->so_server_node, parent, p); in nfs4_insert_state_owner_locked()
438 rb_insert_color(&new->so_server_node, &server->state_owners); in nfs4_insert_state_owner_locked()
[all …]
Dpnfs_dev.c192 struct nfs4_deviceid_node *d, *new; in nfs4_find_get_deviceid() local
198 new = nfs4_get_device_info(server, id, cred, gfp_mask); in nfs4_find_get_deviceid()
199 if (!new) in nfs4_find_get_deviceid()
200 return new; in nfs4_find_get_deviceid()
206 server->pnfs_curr_ld->free_deviceid_node(new); in nfs4_find_get_deviceid()
209 hlist_add_head_rcu(&new->node, &nfs4_deviceid_cache[hash]); in nfs4_find_get_deviceid()
210 atomic_inc(&new->ref); in nfs4_find_get_deviceid()
213 return new; in nfs4_find_get_deviceid()
Dnfs4namespace.c173 struct rpc_clnt *new; in nfs_find_best_sec() local
177 new = rpc_clone_client_set_auth(clnt, pflavor); in nfs_find_best_sec()
178 if (IS_ERR(new)) in nfs_find_best_sec()
185 cred = rpcauth_lookupcred(new->cl_auth, 0); in nfs_find_best_sec()
187 rpc_shutdown_client(new); in nfs_find_best_sec()
191 return new; in nfs_find_best_sec()
215 struct rpc_clnt *new; in nfs4_negotiate_security() local
226 new = ERR_PTR(err); in nfs4_negotiate_security()
230 new = nfs_find_best_sec(clnt, NFS_SERVER(inode), flavors); in nfs4_negotiate_security()
234 return new; in nfs4_negotiate_security()
/fs/jffs2/
Dnodelist.c26 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
30 dbg_dentlist("add dirent \"%s\", ino #%u\n", new->name, new->ino); in jffs2_add_fd_to_list()
32 while ((*prev) && (*prev)->nhash <= new->nhash) { in jffs2_add_fd_to_list()
33 if ((*prev)->nhash == new->nhash && !strcmp((*prev)->name, new->name)) { in jffs2_add_fd_to_list()
35 if (new->version < (*prev)->version) { in jffs2_add_fd_to_list()
38 jffs2_mark_node_obsolete(c, new->raw); in jffs2_add_fd_to_list()
39 jffs2_free_full_dirent(new); in jffs2_add_fd_to_list()
43 new->next = (*prev)->next; in jffs2_add_fd_to_list()
49 *prev = new; in jffs2_add_fd_to_list()
55 new->next = *prev; in jffs2_add_fd_to_list()
[all …]
/fs/ext4/
Dnamei.c1228 struct dx_entry *old = frame->at, *new = old + 1; in dx_insert_block() local
1233 memmove(new + 1, new, (char *)(entries + count) - (char *)(new)); in dx_insert_block()
1234 dx_set_hash(new, hash); in dx_insert_block()
1235 dx_set_block(new, block); in dx_insert_block()
3437 struct ext4_renament new = { in ext4_rename() local
3462 retval = dquot_initialize(new.dir); in ext4_rename()
3468 if (new.inode) { in ext4_rename()
3469 retval = dquot_initialize(new.inode); in ext4_rename()
3487 if ((old.dir != new.dir) && in ext4_rename()
3488 ext4_encrypted_inode(new.dir) && in ext4_rename()
[all …]
/fs/overlayfs/
Ddir.c588 struct dentry *new) in ovl_link() argument
604 err = ovl_create_or_link(new, inode, NULL, NULL, ovl_dentry_upper(old)); in ovl_link()
784 struct inode *newdir, struct dentry *new, in ovl_rename2() argument
820 if (new->d_inode) { in ovl_rename2()
821 err = ovl_check_sticky(new); in ovl_rename2()
825 if (d_is_dir(new)) in ovl_rename2()
828 new_type = ovl_path_type(new); in ovl_rename2()
836 ovl_dentry_lower(new)->d_inode) in ovl_rename2()
841 ovl_dentry_upper(new)->d_inode) in ovl_rename2()
845 if (ovl_dentry_is_opaque(new)) in ovl_rename2()
[all …]
Dcopy_up.c55 int ovl_copy_xattr(struct dentry *old, struct dentry *new) in ovl_copy_xattr() argument
63 !(new->d_inode->i_opflags & IOP_XATTR)) in ovl_copy_xattr()
106 void *new; in ovl_copy_xattr() local
108 new = krealloc(value, size, GFP_KERNEL); in ovl_copy_xattr()
109 if (!new) { in ovl_copy_xattr()
113 value = new; in ovl_copy_xattr()
125 error = vfs_setxattr(new, name, value, size, 0); in ovl_copy_xattr()
135 static int ovl_copy_up_data(struct path *old, struct path *new, loff_t len) in ovl_copy_up_data() argument
150 new_file = ovl_path_open(new, O_LARGEFILE | O_WRONLY); in ovl_copy_up_data()
/fs/orangefs/
Dorangefs-debugfs.c639 char *new; in orangefs_prepare_debugfs_help_string() local
648 new = kzalloc(DEBUG_HELP_STRING_SIZE, GFP_KERNEL); in orangefs_prepare_debugfs_help_string()
649 if (!new) { in orangefs_prepare_debugfs_help_string()
664 strlcat(new, client_title, string_size); in orangefs_prepare_debugfs_help_string()
675 kfree(new); in orangefs_prepare_debugfs_help_string()
680 strlcat(new, "\t", string_size); in orangefs_prepare_debugfs_help_string()
681 strlcat(new, cdm_array[i].keyword, string_size); in orangefs_prepare_debugfs_help_string()
682 strlcat(new, "\n", string_size); in orangefs_prepare_debugfs_help_string()
686 strlcat(new, "\n", string_size); in orangefs_prepare_debugfs_help_string()
687 strlcat(new, kernel_title, string_size); in orangefs_prepare_debugfs_help_string()
[all …]
/fs/ocfs2/
Duptodate.c320 struct ocfs2_meta_cache_item *new) in __ocfs2_insert_cache_tree() argument
322 sector_t block = new->c_block; in __ocfs2_insert_cache_tree()
348 rb_link_node(&new->c_node, parent, p); in __ocfs2_insert_cache_tree()
349 rb_insert_color(&new->c_node, &ci->ci_cache.ci_tree); in __ocfs2_insert_cache_tree()
405 struct ocfs2_meta_cache_item *new = NULL; in __ocfs2_set_buffer_uptodate() local
413 new = kmem_cache_alloc(ocfs2_uptodate_cachep, GFP_NOFS); in __ocfs2_set_buffer_uptodate()
414 if (!new) { in __ocfs2_set_buffer_uptodate()
418 new->c_block = block; in __ocfs2_set_buffer_uptodate()
447 __ocfs2_insert_cache_tree(ci, new); in __ocfs2_set_buffer_uptodate()
450 new = NULL; in __ocfs2_set_buffer_uptodate()
[all …]
/fs/
Dfcntl.c616 void fasync_free(struct fasync_struct *new) in fasync_free() argument
618 kmem_cache_free(fasync_cache, new); in fasync_free()
628 …ync_insert_entry(int fd, struct file *filp, struct fasync_struct **fapp, struct fasync_struct *new) in fasync_insert_entry() argument
644 spin_lock_init(&new->fa_lock); in fasync_insert_entry()
645 new->magic = FASYNC_MAGIC; in fasync_insert_entry()
646 new->fa_file = filp; in fasync_insert_entry()
647 new->fa_fd = fd; in fasync_insert_entry()
648 new->fa_next = *fapp; in fasync_insert_entry()
649 rcu_assign_pointer(*fapp, new); in fasync_insert_entry()
664 struct fasync_struct *new; in fasync_add_entry() local
[all …]
/fs/nilfs2/
Dthe_nilfs.c754 struct nilfs_root *root, *new; in nilfs_find_or_create_root() local
761 new = kzalloc(sizeof(*root), GFP_KERNEL); in nilfs_find_or_create_root()
762 if (!new) in nilfs_find_or_create_root()
781 kfree(new); in nilfs_find_or_create_root()
786 new->cno = cno; in nilfs_find_or_create_root()
787 new->ifile = NULL; in nilfs_find_or_create_root()
788 new->nilfs = nilfs; in nilfs_find_or_create_root()
789 atomic_set(&new->count, 1); in nilfs_find_or_create_root()
790 atomic64_set(&new->inodes_count, 0); in nilfs_find_or_create_root()
791 atomic64_set(&new->blocks_count, 0); in nilfs_find_or_create_root()
[all …]

1234567