/fs/xfs/libxfs/ |
D | xfs_ag.c | 47 static inline bool is_log_ag(struct xfs_mount *mp, struct aghdr_init_data *id) in is_log_ag() argument 50 id->agno == XFS_FSB_TO_AGNO(mp, mp->m_sb.sb_logstart); in is_log_ag() 60 struct aghdr_init_data *id) in xfs_btroot_init() argument 62 xfs_btree_init_block(mp, bp, id->type, 0, 0, id->agno); in xfs_btroot_init() 70 struct aghdr_init_data *id) in xfs_freesp_init_recs() argument 78 if (is_log_ag(mp, id)) { in xfs_freesp_init_recs() 114 arec->ar_blockcount = cpu_to_be32(id->agsize - in xfs_freesp_init_recs() 127 struct aghdr_init_data *id) in xfs_bnoroot_init() argument 129 xfs_btree_init_block(mp, bp, XFS_BTNUM_BNO, 0, 1, id->agno); in xfs_bnoroot_init() 130 xfs_freesp_init_recs(mp, bp, id); in xfs_bnoroot_init() [all …]
|
D | xfs_dquot_buf.c | 40 xfs_dqid_t id, in xfs_dquot_verify() argument 70 if (id != -1 && id != be32_to_cpu(ddq->d_id)) in xfs_dquot_verify() 98 xfs_dqid_t id, in xfs_dqblk_verify() argument 105 return xfs_dquot_verify(mp, &dqb->dd_diskdq, id, type); in xfs_dqblk_verify() 115 xfs_dqid_t id, in xfs_dqblk_repair() argument 121 ASSERT(id != -1); in xfs_dqblk_repair() 127 dqb->dd_diskdq.d_id = cpu_to_be32(id); in xfs_dqblk_repair() 179 xfs_dqid_t id = 0; in xfs_dquot_buf_verify() local 206 id = be32_to_cpu(ddq->d_id); in xfs_dquot_buf_verify() 208 fa = xfs_dqblk_verify(mp, &dqb[i], id + i, 0); in xfs_dquot_buf_verify()
|
/fs/nfsd/ |
D | nfs4idmap.c | 65 u32 id; member 82 new->id = itm->id; in ent_init() 116 hash = hash_long(hash ^ ent->id, ENT_HASHBITS); in idtoname_hash() 133 snprintf(idstr, sizeof(idstr), "%u", ent->id); in idtoname_request() 146 return (a->id == b->id && a->type == b->type && in idtoname_match() 162 ent->id); in idtoname_show() 230 ent.id = simple_strtoul(buf1, &bp, 10); in idtoname_parse() 335 seq_printf(m, " %u", ent->id); in nametoid_show() 401 error = get_int(&buf, &ent.id); in nametoid_parse() 525 u32 *id) in idmap_name_to_id() argument [all …]
|
/fs/nfs/ |
D | pnfs_dev.c | 52 nfs4_print_deviceid(const struct nfs4_deviceid *id) in nfs4_print_deviceid() argument 54 u32 *p = (u32 *)id; in nfs4_print_deviceid() 63 nfs4_deviceid_hash(const struct nfs4_deviceid *id) in nfs4_deviceid_hash() argument 65 unsigned char *cptr = (unsigned char *)id->data; in nfs4_deviceid_hash() 78 const struct nfs_client *clp, const struct nfs4_deviceid *id, in _lookup_deviceid() argument 85 !memcmp(&d->deviceid, id, sizeof(*id))) { in _lookup_deviceid() 133 pdev->layout_type = server->pnfs_curr_ld->id; in nfs4_get_device_info() 172 const struct nfs4_deviceid *id, long hash) in __nfs4_find_get_deviceid() argument 177 d = _lookup_deviceid(server->pnfs_curr_ld, server->nfs_client, id, in __nfs4_find_get_deviceid() 187 const struct nfs4_deviceid *id, const struct cred *cred, in nfs4_find_get_deviceid() argument [all …]
|
D | nfs4idmap.c | 180 static int nfs_map_numeric_to_string(__u32 id, char *buf, size_t buflen) in nfs_map_numeric_to_string() argument 182 return snprintf(buf, buflen, "%u", id); in nfs_map_numeric_to_string() 349 static ssize_t nfs_idmap_lookup_name(__u32 id, const char *type, char *buf, in nfs_idmap_lookup_name() argument 356 id_len = nfs_map_numeric_to_string(id, id_str, sizeof(id_str)); in nfs_idmap_lookup_name() 365 __u32 *id, struct idmap *idmap) in nfs_idmap_lookup_id() argument 378 *id = (__u32)id_long; in nfs_idmap_lookup_id() 745 __u32 id = -1; in nfs_map_name_to_uid() local 748 if (!nfs_map_string_to_numeric(name, namelen, &id)) in nfs_map_name_to_uid() 749 ret = nfs_idmap_lookup_id(name, namelen, "uid", &id, idmap); in nfs_map_name_to_uid() 751 *uid = make_kuid(idmap_userns(idmap), id); in nfs_map_name_to_uid() [all …]
|
/fs/ |
D | binfmt_flat.c | 90 static int load_flat_shared_library(int id, struct lib_info *p); 317 int id; in calc_reloc() local 325 id = curid; /* Relocs of 0 are always self referring */ in calc_reloc() 327 id = (r >> 24) & 0xff; /* Find ID for this reloc */ in calc_reloc() 330 if (id >= MAX_SHARED_LIBS) { in calc_reloc() 331 pr_err("reference 0x%lx to shared library %d", r, id); in calc_reloc() 334 if (curid != id) { in calc_reloc() 337 "(%d != %d)", r, curid, id); in calc_reloc() 339 } else if (!p->lib_list[id].loaded && in calc_reloc() 340 load_flat_shared_library(id, p) < 0) { in calc_reloc() [all …]
|
/fs/xfs/ |
D | xfs_dquot.c | 210 xfs_dqid_t id, in xfs_qm_init_dquot_blk() argument 227 curid = id - (id % q->qi_dqperchunk); in xfs_qm_init_dquot_blk() 438 xfs_dqid_t id, in xfs_dquot_alloc() argument 446 dqp->q_core.d_id = cpu_to_be32(id); in xfs_dquot_alloc() 451 dqp->q_fileoffset = (xfs_fileoff_t)id / mp->m_quotainfo->qi_dqperchunk; in xfs_dquot_alloc() 455 dqp->q_bufoffset = (id % mp->m_quotainfo->qi_dqperchunk) * in xfs_dquot_alloc() 559 xfs_dqid_t id, in xfs_qm_dqread() argument 568 dqp = xfs_dquot_alloc(mp, id, type); in xfs_qm_dqread() 607 xfs_dqid_t *id) in xfs_dq_get_next_id() argument 610 xfs_dqid_t next_id = *id + 1; /* simple advance */ in xfs_dq_get_next_id() [all …]
|
D | xfs_fsops.c | 39 struct aghdr_init_data id = {}; in xfs_growfs_data_private() local 89 INIT_LIST_HEAD(&id.buffer_list); in xfs_growfs_data_private() 90 for (id.agno = nagcount - 1; in xfs_growfs_data_private() 91 id.agno >= oagcount; in xfs_growfs_data_private() 92 id.agno--, new -= id.agsize) { in xfs_growfs_data_private() 94 if (id.agno == nagcount - 1) in xfs_growfs_data_private() 95 id.agsize = nb - in xfs_growfs_data_private() 96 (id.agno * (xfs_rfsblock_t)mp->m_sb.sb_agblocks); in xfs_growfs_data_private() 98 id.agsize = mp->m_sb.sb_agblocks; in xfs_growfs_data_private() 100 error = xfs_ag_init_headers(mp, &id); in xfs_growfs_data_private() [all …]
|
D | xfs_quotaops.c | 224 xfs_dqid_t id; in xfs_fs_get_dqblk() local 231 id = from_kqid(&init_user_ns, qid); in xfs_fs_get_dqblk() 232 return xfs_qm_scall_getquota(mp, id, xfs_quota_type(qid.type), qdq); in xfs_fs_get_dqblk() 244 xfs_dqid_t id; in xfs_fs_get_nextdqblk() local 251 id = from_kqid(&init_user_ns, *qid); in xfs_fs_get_nextdqblk() 252 ret = xfs_qm_scall_getquota_next(mp, &id, xfs_quota_type(qid->type), in xfs_fs_get_nextdqblk() 258 *qid = make_kqid(current_user_ns(), qid->type, id); in xfs_fs_get_nextdqblk()
|
D | xfs_qm_syscalls.c | 381 xfs_dqid_t id, in xfs_qm_scall_setqlim() argument 412 error = xfs_qm_dqget(mp, id, type, true, &dqp); in xfs_qm_scall_setqlim() 442 if (id == 0) { in xfs_qm_scall_setqlim() 458 if (id == 0) { in xfs_qm_scall_setqlim() 475 if (id == 0) { in xfs_qm_scall_setqlim() 493 if (id == 0) { in xfs_qm_scall_setqlim() 675 xfs_dqid_t id, in xfs_qm_scall_getquota() argument 686 error = xfs_qm_dqget(mp, id, type, false, &dqp); in xfs_qm_scall_getquota() 713 xfs_dqid_t *id, in xfs_qm_scall_getquota_next() argument 720 error = xfs_qm_dqget_next(mp, *id, type, &dqp); in xfs_qm_scall_getquota_next() [all …]
|
/fs/cifs/ |
D | smbdirect.c | 165 rdma_disconnect(info->id); in smbd_disconnect_rdma_work() 176 struct rdma_cm_id *id, struct rdma_cm_event *event) in smbd_conn_upcall() argument 178 struct smbd_connection *info = id->context; in smbd_conn_upcall() 282 ib_dma_unmap_single(request->info->id->device, in send_done() 582 struct rdma_cm_id *id; in smbd_create_id() local 586 id = rdma_create_id(&init_net, smbd_conn_upcall, info, in smbd_create_id() 588 if (IS_ERR(id)) { in smbd_create_id() 589 rc = PTR_ERR(id); in smbd_create_id() 591 return id; in smbd_create_id() 604 rc = rdma_resolve_addr(id, NULL, (struct sockaddr *)dstaddr, in smbd_create_id() [all …]
|
D | cifsacl.c | 378 gid_t id; in sid_to_id() local 380 id = (gid_t)unix_id; in sid_to_id() 381 gid = make_kgid(&init_user_ns, id); in sid_to_id() 388 uid_t id; in sid_to_id() local 390 id = (uid_t)unix_id; in sid_to_id() 391 uid = make_kuid(&init_user_ns, id); in sid_to_id() 430 uid_t id; in sid_to_id() local 431 memcpy(&id, &sidkey->payload.data[0], sizeof(uid_t)); in sid_to_id() 432 uid = make_kuid(&init_user_ns, id); in sid_to_id() 437 gid_t id; in sid_to_id() local [all …]
|
/fs/quota/ |
D | quota.c | 24 qid_t id) in check_quotactl_permission() argument 38 if ((type == USRQUOTA && uid_eq(current_euid(), make_kuid(current_user_ns(), id))) || in check_quotactl_permission() 39 (type == GRPQUOTA && in_egroup_p(make_kgid(current_user_ns(), id)))) in check_quotactl_permission() 47 return security_quotactl(cmd, type, id, sb); in check_quotactl_permission() 84 static int quota_quotaon(struct super_block *sb, int type, qid_t id, in quota_quotaon() argument 93 return sb->s_qcop->quota_on(sb, type, id, path); in quota_quotaon() 199 static int quota_getquota(struct super_block *sb, int type, qid_t id, in quota_getquota() argument 209 qid = make_kqid(current_user_ns(), type, id); in quota_getquota() 225 static int quota_getnextquota(struct super_block *sb, int type, qid_t id, in quota_getnextquota() argument 235 qid = make_kqid(current_user_ns(), type, id); in quota_getnextquota() [all …]
|
D | compat.c | 45 const char __user *, special, qid_t, id, in COMPAT_SYSCALL_DEFINE4() argument 63 ret = kernel_quotactl(cmd, special, id, dqblk); in COMPAT_SYSCALL_DEFINE4() 79 ret = kernel_quotactl(cmd, special, id, dqblk); in COMPAT_SYSCALL_DEFINE4() 84 ret = kernel_quotactl(cmd, special, id, fsqstat); in COMPAT_SYSCALL_DEFINE4() 117 ret = kernel_quotactl(cmd, special, id, addr); in COMPAT_SYSCALL_DEFINE4()
|
D | quota_tree.c | 26 static int __get_index(struct qtree_mem_dqinfo *info, qid_t id, int depth) in __get_index() argument 32 id /= epb; in __get_index() 33 return id % epb; in __get_index() 38 qid_t id = from_kqid(&init_user_ns, qid); in get_index() local 40 return __get_index(info, id, depth); in get_index() 679 static int find_next_id(struct qtree_mem_dqinfo *info, qid_t *id, in find_next_id() argument 701 for (i = __get_index(info, *id, depth); i < epb; i++) { in find_next_id() 703 *id += level_inc; in find_next_id() 710 ret = find_next_id(info, id, le32_to_cpu(ref[i]), depth + 1); in find_next_id() 725 qid_t id = from_kqid(&init_user_ns, *qid); in qtree_get_next_id() local [all …]
|
/fs/squashfs/ |
D | xattr_id.c | 35 struct squashfs_xattr_id id; in squashfs_xattr_lookup() local 38 err = squashfs_read_metadata(sb, &id, &start_block, &offset, in squashfs_xattr_lookup() 39 sizeof(id)); in squashfs_xattr_lookup() 43 *xattr = le64_to_cpu(id.xattr); in squashfs_xattr_lookup() 44 *size = le32_to_cpu(id.size); in squashfs_xattr_lookup() 45 *count = le32_to_cpu(id.count); in squashfs_xattr_lookup()
|
D | decompressor.c | 76 const struct squashfs_decompressor *squashfs_lookup_decompressor(int id) in squashfs_lookup_decompressor() argument 80 for (i = 0; decompressor[i]->id; i++) in squashfs_lookup_decompressor() 81 if (id == decompressor[i]->id) in squashfs_lookup_decompressor()
|
/fs/reiserfs/ |
D | prints.c | 285 void __reiserfs_warning(struct super_block *sb, const char *id, in __reiserfs_warning() argument 291 "%s\n", sb->s_id, id ? id : "", id ? " " : "", in __reiserfs_warning() 295 id ? id : "", id ? " " : "", function, error_buf); in __reiserfs_warning() 375 void __reiserfs_panic(struct super_block *sb, const char *id, in __reiserfs_panic() argument 385 sb->s_id, id ? id : "", id ? " " : "", in __reiserfs_panic() 389 id ? id : "", id ? " " : "", function, error_buf); in __reiserfs_panic() 393 void __reiserfs_error(struct super_block *sb, const char *id, in __reiserfs_error() argument 401 __reiserfs_panic(sb, id, function, error_buf); in __reiserfs_error() 403 if (id && id[0]) in __reiserfs_error() 405 sb->s_id, id, function, error_buf); in __reiserfs_error()
|
/fs/adfs/ |
D | dir_fplus.c | 12 adfs_fplus_read(struct super_block *sb, unsigned int id, unsigned int sz, struct adfs_dir *dir) in adfs_fplus_read() argument 25 block = __adfs_block_map(sb, id, 0); in adfs_fplus_read() 27 adfs_error(sb, "dir object %X has a hole at offset 0", id); in adfs_fplus_read() 47 adfs_error(sb, "dir %06x has malformed header", id); in adfs_fplus_read() 60 id, size); in adfs_fplus_read() 70 block = __adfs_block_map(sb, id, blk); in adfs_fplus_read() 72 adfs_error(sb, "dir object %X has a hole at offset %d", id, blk); in adfs_fplus_read() 79 id, blk, block); in adfs_fplus_read() 92 adfs_error(sb, "dir %06x has malformed tail", id); in adfs_fplus_read()
|
/fs/sdcardfs/ |
D | lookup.c | 66 userid_t id; member 75 current_userid == ((struct inode_data *)candidate_data)->id) in sdcardfs_inode_test() 87 struct inode *sdcardfs_iget(struct super_block *sb, struct inode *lower_inode, userid_t id) in sdcardfs_iget() argument 96 data.id = id; in sdcardfs_iget() 170 userid_t id) in __sdcardfs_interpose() argument 192 inode = sdcardfs_iget(sb, lower_inode, id); in __sdcardfs_interpose() 215 struct path *lower_path, userid_t id) in sdcardfs_interpose() argument 219 ret_dentry = __sdcardfs_interpose(dentry, sb, lower_path, id); in sdcardfs_interpose() 252 unsigned int flags, struct path *lower_parent_path, userid_t id) in __sdcardfs_lookup() argument 349 __sdcardfs_interpose(dentry, dentry->d_sb, &lower_path, id); in __sdcardfs_lookup()
|
/fs/xfs/scrub/ |
D | quota.c | 95 xfs_dqid_t id = be32_to_cpu(d->d_id); in xchk_quota_item() local 101 offset = id / qi->qi_dqperchunk; in xchk_quota_item() 102 if (id && id <= sqi->last_id) in xchk_quota_item() 105 sqi->last_id = id; in xchk_quota_item() 174 if (id != 0 && bhard != 0 && bcount > bhard) in xchk_quota_item() 176 if (id != 0 && ihard != 0 && icount > ihard) in xchk_quota_item() 178 if (id != 0 && rhard != 0 && rcount > rhard) in xchk_quota_item()
|
/fs/notify/dnotify/ |
D | dnotify.c | 141 void dnotify_flush(struct file *filp, fl_owner_t id) in dnotify_flush() argument 164 if ((dn->dn_owner == id) && (dn->dn_filp == filp)) { in dnotify_flush() 219 fl_owner_t id, int fd, struct file *filp, __u32 mask) in attach_dn() argument 226 if ((odn->dn_owner == id) && (odn->dn_filp == filp)) { in attach_dn() 237 dn->dn_owner = id; in attach_dn() 255 fl_owner_t id = current->files; in fcntl_dirnotify() local 271 dnotify_flush(filp, id); in fcntl_dirnotify() 359 error = attach_dn(dn, dn_mark, id, fd, filp, mask); in fcntl_dirnotify()
|
/fs/incfs/ |
D | integrity.c | 77 struct incfs_hash_alg *incfs_get_hash_alg(enum incfs_hash_tree_algorithm id) in incfs_get_hash_alg() argument 82 .id = INCFS_HASH_TREE_SHA256 in incfs_get_hash_alg() 87 if (id == INCFS_HASH_TREE_SHA256) { in incfs_get_hash_alg() 117 struct mtree *incfs_alloc_mtree(enum incfs_hash_tree_algorithm id, in incfs_alloc_mtree() argument 132 hash_alg = incfs_get_hash_alg(id); in incfs_alloc_mtree()
|
/fs/erofs/ |
D | zdata.h | 151 unsigned long *p, o, v, id; in z_erofs_onlinepage_fixup() local 156 id = o >> Z_EROFS_ONLINEPAGE_INDEX_SHIFT; in z_erofs_onlinepage_fixup() 157 if (id) { in z_erofs_onlinepage_fixup() 161 DBG_BUGON(id != index); in z_erofs_onlinepage_fixup()
|
/fs/affs/ |
D | inode.c | 27 u16 id; in affs_iget() local 76 id = be16_to_cpu(tail->uid); in affs_iget() 77 if (id == 0 || affs_test_opt(sbi->s_flags, SF_SETUID)) in affs_iget() 79 else if (id == 0xFFFF && affs_test_opt(sbi->s_flags, SF_MUFS)) in affs_iget() 82 i_uid_write(inode, id); in affs_iget() 84 id = be16_to_cpu(tail->gid); in affs_iget() 85 if (id == 0 || affs_test_opt(sbi->s_flags, SF_SETGID)) in affs_iget() 87 else if (id == 0xFFFF && affs_test_opt(sbi->s_flags, SF_MUFS)) in affs_iget() 90 i_gid_write(inode, id); in affs_iget()
|