/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 | 74 static struct svc_expkey *svc_expkey_update(struct cache_detail *cd, struct svc_expkey *new, 205 struct svc_expkey *new = container_of(b, struct svc_expkey, h); in expkey_match() local 207 if (orig->ek_fsidtype != new->ek_fsidtype || in expkey_match() 208 orig->ek_client != new->ek_client || in expkey_match() 209 memcmp(orig->ek_fsid, new->ek_fsid, key_len(orig->ek_fsidtype)) != 0) in expkey_match() 217 struct svc_expkey *new = container_of(cnew, struct svc_expkey, h); in expkey_init() local 221 new->ek_client = item->ek_client; in expkey_init() 222 new->ek_fsidtype = item->ek_fsidtype; in expkey_init() 224 memcpy(new->ek_fsid, item->ek_fsid, sizeof(new->ek_fsid)); in expkey_init() 230 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 | 74 struct signalfd_siginfo new; in signalfd_copyinfo() local 81 memset(&new, 0, sizeof(new)); in signalfd_copyinfo() 87 new.ssi_signo = kinfo->si_signo; in signalfd_copyinfo() 88 new.ssi_errno = kinfo->si_errno; in signalfd_copyinfo() 89 new.ssi_code = kinfo->si_code; in signalfd_copyinfo() 92 new.ssi_pid = kinfo->si_pid; in signalfd_copyinfo() 93 new.ssi_uid = kinfo->si_uid; in signalfd_copyinfo() 96 new.ssi_tid = kinfo->si_tid; in signalfd_copyinfo() 97 new.ssi_overrun = kinfo->si_overrun; in signalfd_copyinfo() 98 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 282 new = kzalloc(sizeof(*new) + hostname_len + 1, GFP_KERNEL); in nsm_create_handle() 283 if (unlikely(new == NULL)) in nsm_create_handle() 286 refcount_set(&new->sm_count, 1); in nsm_create_handle() 287 new->sm_name = (char *)(new + 1); in nsm_create_handle() 288 memcpy(nsm_addr(new), sap, salen); in nsm_create_handle() 289 new->sm_addrlen = salen; in nsm_create_handle() 290 nsm_init_private(new); in nsm_create_handle() 292 if (rpc_ntop(nsm_addr(new), new->sm_addrbuf, in nsm_create_handle() 293 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 222 new = kzalloc(sizeof(struct afs_permits) + in afs_cache_permit() 224 if (!new) in afs_cache_permit() 227 refcount_set(&new->usage, 1); in afs_cache_permit() 228 new->nr_permits = size; in afs_cache_permit() 233 new->permits[j].key = key; in afs_cache_permit() 234 new->permits[j].access = caller_access; in afs_cache_permit() 237 new->permits[j].key = permits->permits[i].key; in afs_cache_permit() 238 new->permits[j].access = permits->permits[i].access; in afs_cache_permit() 244 new->permits[j].key = key; in afs_cache_permit() [all …]
|
D | server_list.c | 103 bool afs_annotate_server_list(struct afs_server_list *new, in afs_annotate_server_list() argument 109 if (old->nr_servers != new->nr_servers) in afs_annotate_server_list() 113 if (old->servers[i].server != new->servers[i].server) in afs_annotate_server_list() 121 for (j = 0; j < new->nr_servers; j++) { in afs_annotate_server_list() 122 if (new->servers[j].server == cur) { in afs_annotate_server_list() 123 new->preferred = j; 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_cache_alloc(xfs_bmap_free_item_zone, in __xfs_bmap_add_free() 558 new->xefi_startblock = bno; in __xfs_bmap_add_free() 559 new->xefi_blockcount = (xfs_extlen_t)len; in __xfs_bmap_add_free() 561 new->xefi_oinfo = *oinfo; in __xfs_bmap_add_free() 563 new->xefi_oinfo = XFS_RMAP_OINFO_SKIP_UPDATE; in __xfs_bmap_add_free() 564 new->xefi_skip_discard = skip_discard; in __xfs_bmap_add_free() 568 xfs_defer_add(tp, XFS_DEFER_OPS_TYPE_FREE, &new->xefi_list); in __xfs_bmap_add_free() 1197 struct xfs_bmbt_irec new; in xfs_iread_bmbt_block() local 1200 xfs_bmbt_disk_get_all(frp, &new); in xfs_iread_bmbt_block() [all …]
|
/fs/exfat/ |
D | cache.c | 121 struct exfat_cache_id *new) in exfat_cache_merge() argument 128 if (p->fcluster == new->fcluster) { in exfat_cache_merge() 129 if (new->nr_contig > p->nr_contig) in exfat_cache_merge() 130 p->nr_contig = new->nr_contig; in exfat_cache_merge() 138 struct exfat_cache_id *new) in exfat_cache_add() argument 143 if (new->fcluster == EXFAT_EOF_CLUSTER) /* dummy cache */ in exfat_cache_add() 147 if (new->id != EXFAT_CACHE_VALID && in exfat_cache_add() 148 new->id != ei->cache_valid_id) in exfat_cache_add() 151 cache = exfat_cache_merge(inode, new); in exfat_cache_add() 166 cache = exfat_cache_merge(inode, new); in exfat_cache_add() [all …]
|
/fs/overlayfs/ |
D | dir.c | 710 struct dentry *new) in ovl_link() argument 723 err = ovl_copy_up(new->d_parent); in ovl_link() 740 err = ovl_create_or_link(new, inode, in ovl_link() 1090 struct inode *newdir, struct dentry *new, in ovl_rename() argument 1105 bool new_is_dir = d_is_dir(new); in ovl_rename() 1121 if (!overwrite && !ovl_can_move(new)) in ovl_rename() 1124 if (overwrite && new_is_dir && !ovl_pure_upper(new)) { in ovl_rename() 1125 err = ovl_check_empty_dir(new, &list); in ovl_rename() 1132 if (!ovl_dentry_is_whiteout(new)) { in ovl_rename() 1139 } 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() 296 unsigned int new = pos - hdr->io_start; in nfs_readpage_result() local 298 if (hdr->good_bytes > new) { in nfs_readpage_result() 299 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 | 75 struct nfs_dns_ent *new; in nfs_dns_ent_update() local 78 new = container_of(cnew, struct nfs_dns_ent, h); in nfs_dns_ent_update() 81 memcpy(&new->addr, &key->addr, key->addrlen); in nfs_dns_ent_update() 82 new->addrlen = key->addrlen; in nfs_dns_ent_update() 88 struct nfs_dns_ent *new; in nfs_dns_ent_init() local 91 new = container_of(cnew, struct nfs_dns_ent, h); in nfs_dns_ent_init() 94 kfree(new->hostname); in nfs_dns_ent_init() 95 new->hostname = kmemdup_nul(key->hostname, key->namelen, GFP_KERNEL); in nfs_dns_ent_init() 96 if (new->hostname) { in nfs_dns_ent_init() 97 new->namelen = key->namelen; in nfs_dns_ent_init() [all …]
|
D | nfs4super.c | 100 struct nfs_referral_count *p, *new; in nfs_referral_loop_protect() local 103 new = kmalloc(sizeof(*new), GFP_KERNEL); in nfs_referral_loop_protect() 104 if (!new) in nfs_referral_loop_protect() 106 new->task = current; in nfs_referral_loop_protect() 107 new->referral_count = 1; in nfs_referral_loop_protect() 118 list_add(&new->list, &nfs_referral_count_list); in nfs_referral_loop_protect() 119 new = NULL; in nfs_referral_loop_protect() 122 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/orangefs/ |
D | orangefs-debugfs.c | 587 char *new; in orangefs_prepare_debugfs_help_string() local 596 new = kzalloc(DEBUG_HELP_STRING_SIZE, GFP_KERNEL); in orangefs_prepare_debugfs_help_string() 597 if (!new) { in orangefs_prepare_debugfs_help_string() 612 strlcat(new, client_title, string_size); in orangefs_prepare_debugfs_help_string() 623 kfree(new); in orangefs_prepare_debugfs_help_string() 628 strlcat(new, "\t", string_size); in orangefs_prepare_debugfs_help_string() 629 strlcat(new, cdm_array[i].keyword, string_size); in orangefs_prepare_debugfs_help_string() 630 strlcat(new, "\n", string_size); in orangefs_prepare_debugfs_help_string() 634 strlcat(new, "\n", string_size); in orangefs_prepare_debugfs_help_string() 635 strlcat(new, kernel_title, string_size); in orangefs_prepare_debugfs_help_string() [all …]
|
/fs/ext4/ |
D | namei.c | 1344 struct dx_entry *old = frame->at, *new = old + 1; in dx_insert_block() local 1349 memmove(new + 1, new, (char *)(entries + count) - (char *)(new)); in dx_insert_block() 1350 dx_set_hash(new, hash); in dx_insert_block() 1351 dx_set_block(new, block); in dx_insert_block() 3931 struct ext4_renament new = { in ext4_rename() local 3942 if (new.inode && new.inode->i_nlink == 0) { in ext4_rename() 3943 EXT4_ERROR_INODE(new.inode, in ext4_rename() 3959 retval = dquot_initialize(new.dir); in ext4_rename() 3965 if (new.inode) { in ext4_rename() 3966 retval = dquot_initialize(new.inode); in ext4_rename() [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/notify/inotify/ |
D | inotify_fsnotify.c | 35 struct inotify_event_info *old, *new; in event_compare() local 38 new = INOTIFY_E(new_fsn); in event_compare() 41 if ((old->mask == new->mask) && in event_compare() 42 (old->wd == new->wd) && in event_compare() 43 (old->name_len == new->name_len) && in event_compare() 44 (!old->name_len || !strcmp(old->name, new->name))) in event_compare()
|
/fs/nilfs2/ |
D | the_nilfs.c | 849 struct nilfs_root *root, *new; in nilfs_find_or_create_root() local 856 new = kzalloc(sizeof(*root), GFP_KERNEL); in nilfs_find_or_create_root() 857 if (!new) in nilfs_find_or_create_root() 876 kfree(new); in nilfs_find_or_create_root() 881 new->cno = cno; in nilfs_find_or_create_root() 882 new->ifile = NULL; in nilfs_find_or_create_root() 883 new->nilfs = nilfs; in nilfs_find_or_create_root() 884 refcount_set(&new->count, 1); in nilfs_find_or_create_root() 885 atomic64_set(&new->inodes_count, 0); in nilfs_find_or_create_root() 886 atomic64_set(&new->blocks_count, 0); in nilfs_find_or_create_root() [all …]
|