/fs/nfsd/ |
D | auth.c | 25 struct cred *new; in nfsd_setuser() local 33 new = prepare_creds(); in nfsd_setuser() 34 if (!new) in nfsd_setuser() 37 new->fsuid = rqstp->rq_cred.cr_uid; in nfsd_setuser() 38 new->fsgid = rqstp->rq_cred.cr_gid; in nfsd_setuser() 43 new->fsuid = exp->ex_anon_uid; in nfsd_setuser() 44 new->fsgid = exp->ex_anon_gid; in nfsd_setuser() 49 if (uid_eq(new->fsuid, GLOBAL_ROOT_UID)) in nfsd_setuser() 50 new->fsuid = exp->ex_anon_uid; in nfsd_setuser() 51 if (gid_eq(new->fsgid, GLOBAL_ROOT_GID)) in nfsd_setuser() [all …]
|
D | export.c | 68 static struct svc_expkey *svc_expkey_update(struct cache_detail *cd, struct svc_expkey *new, 195 struct svc_expkey *new = container_of(b, struct svc_expkey, h); in expkey_match() local 197 if (orig->ek_fsidtype != new->ek_fsidtype || in expkey_match() 198 orig->ek_client != new->ek_client || in expkey_match() 199 memcmp(orig->ek_fsid, new->ek_fsid, key_len(orig->ek_fsidtype)) != 0) in expkey_match() 207 struct svc_expkey *new = container_of(cnew, struct svc_expkey, h); in expkey_init() local 211 new->ek_client = item->ek_client; in expkey_init() 212 new->ek_fsidtype = item->ek_fsidtype; in expkey_init() 214 memcpy(new->ek_fsid, item->ek_fsid, sizeof(new->ek_fsid)); in expkey_init() 220 struct svc_expkey *new = container_of(cnew, struct svc_expkey, h); in expkey_update() local [all …]
|
/fs/nfs/blocklayout/ |
D | extent_tree.c | 137 struct pnfs_block_extent *new, bool merge_ok) in __ext_tree_insert() argument 146 if (new->be_f_offset < be->be_f_offset) { in __ext_tree_insert() 147 if (merge_ok && ext_can_merge(new, be)) { in __ext_tree_insert() 148 be->be_f_offset = new->be_f_offset; in __ext_tree_insert() 150 be->be_v_offset = new->be_v_offset; in __ext_tree_insert() 151 be->be_length += new->be_length; in __ext_tree_insert() 156 } else if (new->be_f_offset >= ext_f_end(be)) { in __ext_tree_insert() 157 if (merge_ok && ext_can_merge(be, new)) { in __ext_tree_insert() 158 be->be_length += new->be_length; in __ext_tree_insert() 168 rb_link_node(&new->be_node, parent, p); in __ext_tree_insert() [all …]
|
/fs/ |
D | signalfd.c | 84 struct signalfd_siginfo new; in signalfd_copyinfo() local 91 memset(&new, 0, sizeof(new)); in signalfd_copyinfo() 97 new.ssi_signo = kinfo->si_signo; in signalfd_copyinfo() 98 new.ssi_errno = kinfo->si_errno; in signalfd_copyinfo() 99 new.ssi_code = kinfo->si_code; in signalfd_copyinfo() 102 new.ssi_pid = kinfo->si_pid; in signalfd_copyinfo() 103 new.ssi_uid = kinfo->si_uid; in signalfd_copyinfo() 106 new.ssi_tid = kinfo->si_tid; in signalfd_copyinfo() 107 new.ssi_overrun = kinfo->si_overrun; in signalfd_copyinfo() 108 new.ssi_ptr = (long) kinfo->si_ptr; in signalfd_copyinfo() [all …]
|
/fs/cachefiles/ |
D | security.c | 18 struct cred *new; in cachefiles_get_security_ID() local 23 new = prepare_kernel_cred(current); in cachefiles_get_security_ID() 24 if (!new) { in cachefiles_get_security_ID() 30 ret = set_security_override_from_ctx(new, cache->secctx); in cachefiles_get_security_ID() 32 put_cred(new); in cachefiles_get_security_ID() 39 cache->cache_cred = new; in cachefiles_get_security_ID() 79 struct cred *new; in cachefiles_determine_cache_security() local 86 new = prepare_creds(); in cachefiles_determine_cache_security() 87 if (!new) in cachefiles_determine_cache_security() 94 ret = set_create_files_as(new, d_backing_inode(root)); in cachefiles_determine_cache_security() [all …]
|
/fs/lockd/ |
D | mon.c | 277 struct nsm_handle *new; in nsm_create_handle() local 279 new = kzalloc(sizeof(*new) + hostname_len + 1, GFP_KERNEL); in nsm_create_handle() 280 if (unlikely(new == NULL)) in nsm_create_handle() 283 refcount_set(&new->sm_count, 1); in nsm_create_handle() 284 new->sm_name = (char *)(new + 1); in nsm_create_handle() 285 memcpy(nsm_addr(new), sap, salen); in nsm_create_handle() 286 new->sm_addrlen = salen; in nsm_create_handle() 287 nsm_init_private(new); in nsm_create_handle() 289 if (rpc_ntop(nsm_addr(new), new->sm_addrbuf, in nsm_create_handle() 290 sizeof(new->sm_addrbuf)) == 0) in nsm_create_handle() [all …]
|
D | clntproc.c | 99 struct nlm_lockowner *res, *new = NULL; in nlmclnt_find_lockowner() local 105 new = kmalloc(sizeof(*new), GFP_KERNEL); in nlmclnt_find_lockowner() 108 if (res == NULL && new != NULL) { in nlmclnt_find_lockowner() 109 res = new; in nlmclnt_find_lockowner() 110 refcount_set(&new->count, 1); in nlmclnt_find_lockowner() 111 new->owner = owner; in nlmclnt_find_lockowner() 112 new->pid = __nlm_alloc_pid(host); in nlmclnt_find_lockowner() 113 new->host = nlm_get_host(host); in nlmclnt_find_lockowner() 114 list_add(&new->list, &host->h_lockowners); in nlmclnt_find_lockowner() 115 new = NULL; in nlmclnt_find_lockowner() [all …]
|
/fs/afs/ |
D | security.c | 146 struct afs_permits *permits, *xpermits, *replacement, *zap, *new = NULL; in afs_cache_permit() local 223 new = kzalloc(sizeof(struct afs_permits) + in afs_cache_permit() 225 if (!new) in afs_cache_permit() 228 refcount_set(&new->usage, 1); in afs_cache_permit() 229 new->nr_permits = size; in afs_cache_permit() 234 new->permits[j].key = key; in afs_cache_permit() 235 new->permits[j].access = caller_access; in afs_cache_permit() 238 new->permits[j].key = permits->permits[i].key; in afs_cache_permit() 239 new->permits[j].access = permits->permits[i].access; in afs_cache_permit() 245 new->permits[j].key = key; in afs_cache_permit() [all …]
|
D | callback.c | 30 struct afs_cb_interest *new; in afs_create_interest() local 37 new = kzalloc(sizeof(struct afs_cb_interest), GFP_KERNEL); in afs_create_interest() 38 if (!new) { in afs_create_interest() 48 refcount_set(&new->usage, 1); in afs_create_interest() 49 new->sb = vnode->vfs_inode.i_sb; in afs_create_interest() 50 new->vid = vnode->volume->vid; in afs_create_interest() 51 new->server = afs_get_server(server, afs_server_trace_get_new_cbi); in afs_create_interest() 52 INIT_HLIST_NODE(&new->cb_vlink); in afs_create_interest() 75 new->vol_interest = vi; in afs_create_interest() 76 hlist_add_head(&new->cb_vlink, &vi->cb_interests); in afs_create_interest() [all …]
|
D | server_list.c | 101 bool afs_annotate_server_list(struct afs_server_list *new, in afs_annotate_server_list() argument 107 if (old->nr_servers != new->nr_servers) in afs_annotate_server_list() 111 if (old->servers[i].server != new->servers[i].server) in afs_annotate_server_list() 119 for (j = 0; j < new->nr_servers; j++) { in afs_annotate_server_list() 120 if (new->servers[j].server == cur) { in afs_annotate_server_list() 121 new->preferred = j; in afs_annotate_server_list() 131 while (i < old->nr_servers && j < new->nr_servers) { in afs_annotate_server_list() 132 if (new->servers[j].server == old->servers[i].server) { in afs_annotate_server_list() 135 new->servers[j].cb_interest = cbi; in afs_annotate_server_list() 143 if (new->servers[j].server < old->servers[i].server) { in afs_annotate_server_list()
|
/fs/xfs/libxfs/ |
D | xfs_iext_tree.c | 457 struct xfs_iext_node *new = kmem_zalloc(NODE_SIZE, KM_NOFS); in xfs_iext_split_node() local 464 *nodep = new; in xfs_iext_split_node() 472 new->keys[i] = node->keys[nr_keep + i]; in xfs_iext_split_node() 473 new->ptrs[i] = node->ptrs[nr_keep + i]; in xfs_iext_split_node() 480 *nodep = new; in xfs_iext_split_node() 488 new->keys[i] = XFS_IEXT_KEY_INVALID; in xfs_iext_split_node() 489 return new; in xfs_iext_split_node() 499 struct xfs_iext_node *node, *new; in xfs_iext_insert_node() local 506 new = NULL; in xfs_iext_insert_node() 515 new = xfs_iext_split_node(&node, &pos, &nr_entries); in xfs_iext_insert_node() [all …]
|
D | xfs_bmap.c | 537 struct xfs_extent_free_item *new; /* new element */ in __xfs_bmap_add_free() local 556 new = kmem_zone_alloc(xfs_bmap_free_item_zone, 0); in __xfs_bmap_add_free() 557 new->xefi_startblock = bno; in __xfs_bmap_add_free() 558 new->xefi_blockcount = (xfs_extlen_t)len; in __xfs_bmap_add_free() 560 new->xefi_oinfo = *oinfo; in __xfs_bmap_add_free() 562 new->xefi_oinfo = XFS_RMAP_OINFO_SKIP_UPDATE; in __xfs_bmap_add_free() 563 new->xefi_skip_discard = skip_discard; in __xfs_bmap_add_free() 567 xfs_defer_add(tp, XFS_DEFER_OPS_TYPE_FREE, &new->xefi_list); in __xfs_bmap_add_free() 1172 struct xfs_bmbt_irec new; in xfs_iread_extents() local 1256 xfs_bmbt_disk_get_all(frp, &new); in xfs_iread_extents() [all …]
|
/fs/overlayfs/ |
D | dir.c | 667 struct dentry *new) in ovl_link() argument 680 err = ovl_copy_up(new->d_parent); in ovl_link() 697 err = ovl_create_or_link(new, inode, in ovl_link() 1024 struct inode *newdir, struct dentry *new, in ovl_rename() argument 1039 bool new_is_dir = d_is_dir(new); in ovl_rename() 1055 if (!overwrite && !ovl_can_move(new)) in ovl_rename() 1058 if (overwrite && new_is_dir && !ovl_pure_upper(new)) { in ovl_rename() 1059 err = ovl_check_empty_dir(new, &list); in ovl_rename() 1066 if (!ovl_dentry_is_whiteout(new)) { in ovl_rename() 1073 } else if (is_dir && ovl_dentry_is_whiteout(new)) { in ovl_rename() [all …]
|
/fs/nfs/ |
D | read.c | 120 struct nfs_page *new; in nfs_readpage_async() local 128 new = nfs_create_request(ctx, page, 0, len); in nfs_readpage_async() 129 if (IS_ERR(new)) { in nfs_readpage_async() 131 return PTR_ERR(new); in nfs_readpage_async() 138 if (!nfs_pageio_add_request(&pgio, new)) { in nfs_readpage_async() 139 nfs_list_remove_request(new); in nfs_readpage_async() 140 nfs_readpage_release(new, pgio.pg_error); in nfs_readpage_async() 293 unsigned int new = pos - hdr->io_start; in nfs_readpage_result() local 295 if (hdr->good_bytes > new) { in nfs_readpage_result() 296 hdr->good_bytes = new; in nfs_readpage_result() [all …]
|
D | nfs4client.c | 78 struct nfs4_ds_server *new) in nfs4_add_ds_client() argument 88 if (new) in nfs4_add_ds_client() 89 list_add_rcu(&new->list, &ds_clp->cl_ds_clients); in nfs4_add_ds_client() 90 dss = new; in nfs4_add_ds_client() 134 struct nfs4_ds_server *dss, *new; in nfs4_find_or_create_ds_client() local 140 new = nfs4_alloc_ds_server(ds_clp, flavor); in nfs4_find_or_create_ds_client() 141 if (IS_ERR(new)) in nfs4_find_or_create_ds_client() 142 return ERR_CAST(new); in nfs4_find_or_create_ds_client() 143 dss = nfs4_add_ds_client(ds_clp, flavor, new); in nfs4_find_or_create_ds_client() 144 if (dss != new) in nfs4_find_or_create_ds_client() [all …]
|
D | dns_resolve.c | 76 struct nfs_dns_ent *new; in nfs_dns_ent_update() local 79 new = container_of(cnew, struct nfs_dns_ent, h); in nfs_dns_ent_update() 82 memcpy(&new->addr, &key->addr, key->addrlen); in nfs_dns_ent_update() 83 new->addrlen = key->addrlen; in nfs_dns_ent_update() 89 struct nfs_dns_ent *new; in nfs_dns_ent_init() local 92 new = container_of(cnew, struct nfs_dns_ent, h); in nfs_dns_ent_init() 95 kfree(new->hostname); in nfs_dns_ent_init() 96 new->hostname = kstrndup(key->hostname, key->namelen, GFP_KERNEL); in nfs_dns_ent_init() 97 if (new->hostname) { in nfs_dns_ent_init() 98 new->namelen = key->namelen; in nfs_dns_ent_init() [all …]
|
D | nfs4super.c | 175 struct nfs_referral_count *p, *new; in nfs_referral_loop_protect() local 178 new = kmalloc(sizeof(*new), GFP_KERNEL); in nfs_referral_loop_protect() 179 if (!new) in nfs_referral_loop_protect() 181 new->task = current; in nfs_referral_loop_protect() 182 new->referral_count = 1; in nfs_referral_loop_protect() 193 list_add(&new->list, &nfs_referral_count_list); in nfs_referral_loop_protect() 194 new = NULL; in nfs_referral_loop_protect() 197 kfree(new); in nfs_referral_loop_protect()
|
/fs/xfs/ |
D | xfs_extent_busy.c | 30 struct xfs_extent_busy *new; in xfs_extent_busy_insert() local 36 new = kmem_zalloc(sizeof(struct xfs_extent_busy), 0); in xfs_extent_busy_insert() 37 new->agno = agno; in xfs_extent_busy_insert() 38 new->bno = bno; in xfs_extent_busy_insert() 39 new->length = len; in xfs_extent_busy_insert() 40 INIT_LIST_HEAD(&new->list); in xfs_extent_busy_insert() 41 new->flags = flags; in xfs_extent_busy_insert() 46 pag = xfs_perag_get(tp->t_mountp, new->agno); in xfs_extent_busy_insert() 53 if (new->bno < busyp->bno) { in xfs_extent_busy_insert() 55 ASSERT(new->bno + new->length <= busyp->bno); in xfs_extent_busy_insert() [all …]
|
/fs/fat/ |
D | cache.c | 118 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 …]
|
/fs/jffs2/ |
D | nodelist.c | 26 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/ |
D | namei.c | 1262 struct dx_entry *old = frame->at, *new = old + 1; in dx_insert_block() local 1267 memmove(new + 1, new, (char *)(entries + count) - (char *)(new)); in dx_insert_block() 1268 dx_set_hash(new, hash); in dx_insert_block() 1269 dx_set_block(new, block); in dx_insert_block() 3643 struct ext4_renament new = { in ext4_rename() local 3654 if (new.inode && new.inode->i_nlink == 0) { in ext4_rename() 3655 EXT4_ERROR_INODE(new.inode, in ext4_rename() 3668 retval = dquot_initialize(new.dir); in ext4_rename() 3674 if (new.inode) { in ext4_rename() 3675 retval = dquot_initialize(new.inode); in ext4_rename() [all …]
|
/fs/notify/fanotify/ |
D | fanotify.c | 23 struct fanotify_event *old, *new; in should_merge() local 27 new = FANOTIFY_E(new_fsn); in should_merge() 29 if (old_fsn->inode != new_fsn->inode || old->pid != new->pid || in should_merge() 30 old->fh_type != new->fh_type || old->fh_len != new->fh_len) in should_merge() 34 return old->path.mnt == new->path.mnt && in should_merge() 35 old->path.dentry == new->path.dentry; in should_merge() 45 return (old->mask & FS_ISDIR) == (new->mask & FS_ISDIR) && in should_merge() 46 fanotify_fid_equal(&old->fid, &new->fid, old->fh_len); in should_merge() 57 struct fanotify_event *new; in fanotify_merge() local 60 new = FANOTIFY_E(event); in fanotify_merge() [all …]
|
/fs/orangefs/ |
D | orangefs-debugfs.c | 604 char *new; in orangefs_prepare_debugfs_help_string() local 613 new = kzalloc(DEBUG_HELP_STRING_SIZE, GFP_KERNEL); in orangefs_prepare_debugfs_help_string() 614 if (!new) { in orangefs_prepare_debugfs_help_string() 629 strlcat(new, client_title, string_size); in orangefs_prepare_debugfs_help_string() 640 kfree(new); in orangefs_prepare_debugfs_help_string() 645 strlcat(new, "\t", string_size); in orangefs_prepare_debugfs_help_string() 646 strlcat(new, cdm_array[i].keyword, string_size); in orangefs_prepare_debugfs_help_string() 647 strlcat(new, "\n", string_size); in orangefs_prepare_debugfs_help_string() 651 strlcat(new, "\n", string_size); in orangefs_prepare_debugfs_help_string() 652 strlcat(new, kernel_title, string_size); in orangefs_prepare_debugfs_help_string() [all …]
|
/fs/ocfs2/ |
D | uptodate.c | 306 struct ocfs2_meta_cache_item *new) in __ocfs2_insert_cache_tree() argument 308 sector_t block = new->c_block; in __ocfs2_insert_cache_tree() 334 rb_link_node(&new->c_node, parent, p); in __ocfs2_insert_cache_tree() 335 rb_insert_color(&new->c_node, &ci->ci_cache.ci_tree); in __ocfs2_insert_cache_tree() 391 struct ocfs2_meta_cache_item *new = NULL; in __ocfs2_set_buffer_uptodate() local 399 new = kmem_cache_alloc(ocfs2_uptodate_cachep, GFP_NOFS); in __ocfs2_set_buffer_uptodate() 400 if (!new) { in __ocfs2_set_buffer_uptodate() 404 new->c_block = block; in __ocfs2_set_buffer_uptodate() 433 __ocfs2_insert_cache_tree(ci, new); in __ocfs2_set_buffer_uptodate() 436 new = NULL; in __ocfs2_set_buffer_uptodate() [all …]
|
/fs/nilfs2/ |
D | the_nilfs.c | 745 struct nilfs_root *root, *new; in nilfs_find_or_create_root() local 752 new = kzalloc(sizeof(*root), GFP_KERNEL); in nilfs_find_or_create_root() 753 if (!new) in nilfs_find_or_create_root() 772 kfree(new); in nilfs_find_or_create_root() 777 new->cno = cno; in nilfs_find_or_create_root() 778 new->ifile = NULL; in nilfs_find_or_create_root() 779 new->nilfs = nilfs; in nilfs_find_or_create_root() 780 refcount_set(&new->count, 1); in nilfs_find_or_create_root() 781 atomic64_set(&new->inodes_count, 0); in nilfs_find_or_create_root() 782 atomic64_set(&new->blocks_count, 0); in nilfs_find_or_create_root() [all …]
|