/fs/nfsd/ |
D | nfs4idmap.c | 65 u32 id; member 81 new->id = itm->id; in ent_init() 115 hash = hash_long(hash ^ ent->id, ENT_HASHBITS); in idtoname_hash() 132 snprintf(idstr, sizeof(idstr), "%u", ent->id); in idtoname_request() 145 return (a->id == b->id && a->type == b->type && in idtoname_match() 161 ent->id); in idtoname_show() 229 ent.id = simple_strtoul(buf1, &bp, 10); in idtoname_parse() 334 seq_printf(m, " %u", ent->id); in nametoid_show() 400 error = get_int(&buf, &ent.id); in nametoid_parse() 524 u32 *id) in idmap_name_to_id() argument [all …]
|
/fs/nfs/ |
D | pnfs_dev.c | 53 nfs4_print_deviceid(const struct nfs4_deviceid *id) in nfs4_print_deviceid() argument 55 u32 *p = (u32 *)id; in nfs4_print_deviceid() 64 nfs4_deviceid_hash(const struct nfs4_deviceid *id) in nfs4_deviceid_hash() argument 66 unsigned char *cptr = (unsigned char *)id->data; in nfs4_deviceid_hash() 79 const struct nfs_client *clp, const struct nfs4_deviceid *id, in _lookup_deviceid() argument 86 !memcmp(&d->deviceid, id, sizeof(*id))) { in _lookup_deviceid() 134 pdev->layout_type = server->pnfs_curr_ld->id; in nfs4_get_device_info() 173 const struct nfs4_deviceid *id, long hash) in __nfs4_find_get_deviceid() argument 178 d = _lookup_deviceid(server->pnfs_curr_ld, server->nfs_client, id, in __nfs4_find_get_deviceid() 188 const struct nfs4_deviceid *id, struct rpc_cred *cred, in nfs4_find_get_deviceid() argument [all …]
|
D | nfs4idmap.c | 171 static int nfs_map_numeric_to_string(__u32 id, char *buf, size_t buflen) in nfs_map_numeric_to_string() argument 173 return snprintf(buf, buflen, "%u", id); in nfs_map_numeric_to_string() 339 static ssize_t nfs_idmap_lookup_name(__u32 id, const char *type, char *buf, in nfs_idmap_lookup_name() argument 346 id_len = snprintf(id_str, sizeof(id_str), "%u", id); in nfs_idmap_lookup_name() 355 __u32 *id, struct idmap *idmap) in nfs_idmap_lookup_id() argument 367 *id = (__u32)id_long; in nfs_idmap_lookup_id() 723 __u32 id = -1; in nfs_map_name_to_uid() local 726 if (!nfs_map_string_to_numeric(name, namelen, &id)) in nfs_map_name_to_uid() 727 ret = nfs_idmap_lookup_id(name, namelen, "uid", &id, idmap); in nfs_map_name_to_uid() 729 *uid = make_kuid(&init_user_ns, id); in nfs_map_name_to_uid() [all …]
|
/fs/ |
D | binfmt_flat.c | 77 static int load_flat_shared_library(int id, struct lib_info *p); 313 int id; in calc_reloc() local 321 id = curid; /* Relocs of 0 are always self referring */ in calc_reloc() 323 id = (r >> 24) & 0xff; /* Find ID for this reloc */ in calc_reloc() 326 if (id >= MAX_SHARED_LIBS) { in calc_reloc() 327 pr_err("reference 0x%lx to shared library %d", r, id); in calc_reloc() 330 if (curid != id) { in calc_reloc() 333 "(%d != %d)", r, curid, id); in calc_reloc() 335 } else if (!p->lib_list[id].loaded && in calc_reloc() 336 load_flat_shared_library(id, p) < 0) { in calc_reloc() [all …]
|
/fs/xfs/libxfs/ |
D | xfs_dquot_buf.c | 54 xfs_dqid_t id, in xfs_dqcheck() argument 81 str, id, be16_to_cpu(ddq->d_magic), XFS_DQUOT_MAGIC); in xfs_dqcheck() 88 str, id, ddq->d_version, XFS_DQUOT_VERSION); in xfs_dqcheck() 98 str, id, ddq->d_flags); in xfs_dqcheck() 102 if (id != -1 && id != be32_to_cpu(ddq->d_id)) { in xfs_dqcheck() 107 str, ddq, id, be32_to_cpu(ddq->d_id)); in xfs_dqcheck() 151 xfs_notice(mp, "Re-initializing dquot ID 0x%x", id); in xfs_dqcheck() 156 ASSERT(id != -1); in xfs_dqcheck() 163 d->dd_diskdq.d_id = cpu_to_be32(id); in xfs_dqcheck() 213 xfs_dqid_t id = 0; in xfs_dquot_buf_verify() local [all …]
|
/fs/pstore/ |
D | inode.c | 52 u64 id; member 201 p->psi->erase(p->type, p->id, p->count, in pstore_unlink() 300 int pstore_mkfile(enum pstore_type_id type, char *psname, u64 id, int count, in pstore_mkfile() argument 315 pos->id == id && in pstore_mkfile() 335 private->id = id; in pstore_mkfile() 342 psname, id, compressed ? ".enc.z" : ""); in pstore_mkfile() 345 scnprintf(name, sizeof(name), "console-%s-%lld", psname, id); in pstore_mkfile() 348 scnprintf(name, sizeof(name), "ftrace-%s-%lld", psname, id); in pstore_mkfile() 351 scnprintf(name, sizeof(name), "mce-%s-%lld", psname, id); in pstore_mkfile() 354 scnprintf(name, sizeof(name), "rtas-%s-%lld", psname, id); in pstore_mkfile() [all …]
|
D | platform.c | 483 u64 id; in pstore_dump() local 540 ret = psinfo->write(PSTORE_TYPE_DMESG, reason, &id, part, in pstore_dump() 576 u64 id; in pstore_console_write() local 588 psinfo->write(PSTORE_TYPE_CONSOLE, 0, &id, 0, 0, 0, c, psinfo); in pstore_console_write() 618 u64 *id, unsigned int part, int count, in pstore_write_compat() argument 622 return psi->write_buf(type, reason, id, part, psinfo->buf, compressed, in pstore_write_compat() 628 u64 *id, unsigned int part, in pstore_write_buf_user_compat() argument 650 ret = psi->write_buf(type, reason, id, part, psinfo->buf, in pstore_write_buf_user_compat() 762 u64 id; in pstore_get_records() local 778 while ((size = psi->read(&id, &type, &count, &time, &buf, &compressed, in pstore_get_records() [all …]
|
D | ram.c | 127 u64 *id, in ramoops_get_next_prz() argument 149 *id = i; in ramoops_get_next_prz() 183 static ssize_t ramoops_pstore_read(u64 *id, enum pstore_type_id *type, in ramoops_pstore_read() argument 205 cxt->max_dump_cnt, id, type, in ramoops_pstore_read() 221 1, id, type, PSTORE_TYPE_CONSOLE, 0); in ramoops_pstore_read() 224 1, id, type, PSTORE_TYPE_FTRACE, 0); in ramoops_pstore_read() 227 1, id, type, PSTORE_TYPE_PMSG, 0); in ramoops_pstore_read() 271 u64 *id, unsigned int part, in ramoops_pstore_write_buf() argument 336 u64 *id, unsigned int part, in ramoops_pstore_write_buf_user() argument 352 static int ramoops_pstore_erase(enum pstore_type_id type, u64 id, int count, in ramoops_pstore_erase() argument [all …]
|
/fs/quota/ |
D | quota.c | 22 qid_t id) in check_quotactl_permission() argument 36 if ((type == USRQUOTA && uid_eq(current_euid(), make_kuid(current_user_ns(), id))) || in check_quotactl_permission() 37 (type == GRPQUOTA && in_egroup_p(make_kgid(current_user_ns(), id)))) in check_quotactl_permission() 45 return security_quotactl(cmd, type, id, sb); in check_quotactl_permission() 82 static int quota_quotaon(struct super_block *sb, int type, qid_t id, in quota_quotaon() argument 91 return sb->s_qcop->quota_on(sb, type, id, path); in quota_quotaon() 203 static int quota_getquota(struct super_block *sb, int type, qid_t id, in quota_getquota() argument 213 qid = make_kqid(current_user_ns(), type, id); in quota_getquota() 229 static int quota_getnextquota(struct super_block *sb, int type, qid_t id, in quota_getnextquota() argument 239 qid = make_kqid(current_user_ns(), type, id); in quota_getnextquota() [all …]
|
D | compat.c | 44 qid_t id, void __user *addr) in sys32_quotactl() argument 61 ret = sys_quotactl(cmd, special, id, dqblk); in sys32_quotactl() 77 ret = sys_quotactl(cmd, special, id, dqblk); in sys32_quotactl() 82 ret = sys_quotactl(cmd, special, id, fsqstat); in sys32_quotactl() 115 ret = sys_quotactl(cmd, special, id, addr); in sys32_quotactl()
|
D | quota_tree.c | 25 static int __get_index(struct qtree_mem_dqinfo *info, qid_t id, int depth) in __get_index() argument 31 id /= epb; in __get_index() 32 return id % epb; in __get_index() 37 qid_t id = from_kqid(&init_user_ns, qid); in get_index() local 39 return __get_index(info, id, depth); in get_index() 678 static int find_next_id(struct qtree_mem_dqinfo *info, qid_t *id, in find_next_id() argument 700 for (i = __get_index(info, *id, depth); i < epb; i++) { in find_next_id() 702 *id += level_inc; in find_next_id() 709 ret = find_next_id(info, id, le32_to_cpu(ref[i]), depth + 1); in find_next_id() 724 qid_t id = from_kqid(&init_user_ns, *qid); in qtree_get_next_id() local [all …]
|
/fs/squashfs/ |
D | xattr_id.c | 48 struct squashfs_xattr_id id; in squashfs_xattr_lookup() local 51 err = squashfs_read_metadata(sb, &id, &start_block, &offset, in squashfs_xattr_lookup() 52 sizeof(id)); in squashfs_xattr_lookup() 56 *xattr = le64_to_cpu(id.xattr); in squashfs_xattr_lookup() 57 *size = le32_to_cpu(id.size); in squashfs_xattr_lookup() 58 *count = le32_to_cpu(id.count); in squashfs_xattr_lookup()
|
D | decompressor.c | 83 const struct squashfs_decompressor *squashfs_lookup_decompressor(int id) in squashfs_lookup_decompressor() argument 87 for (i = 0; decompressor[i]->id; i++) in squashfs_lookup_decompressor() 88 if (id == decompressor[i]->id) in squashfs_lookup_decompressor()
|
/fs/reiserfs/ |
D | prints.c | 264 void __reiserfs_warning(struct super_block *sb, const char *id, in __reiserfs_warning() argument 270 "%s\n", sb->s_id, id ? id : "", id ? " " : "", in __reiserfs_warning() 274 id ? id : "", id ? " " : "", function, error_buf); in __reiserfs_warning() 354 void __reiserfs_panic(struct super_block *sb, const char *id, in __reiserfs_panic() argument 364 sb->s_id, id ? id : "", id ? " " : "", in __reiserfs_panic() 368 id ? id : "", id ? " " : "", function, error_buf); in __reiserfs_panic() 372 void __reiserfs_error(struct super_block *sb, const char *id, in __reiserfs_error() argument 380 __reiserfs_panic(sb, id, function, error_buf); in __reiserfs_error() 382 if (id && id[0]) in __reiserfs_error() 384 sb->s_id, id, function, error_buf); in __reiserfs_error()
|
/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/adfs/ |
D | dir_fplus.c | 16 adfs_fplus_read(struct super_block *sb, unsigned int id, unsigned int sz, struct adfs_dir *dir) in adfs_fplus_read() argument 29 block = __adfs_block_map(sb, id, 0); in adfs_fplus_read() 31 adfs_error(sb, "dir object %X has a hole at offset 0", id); in adfs_fplus_read() 53 " malformed dir header\n", id); in adfs_fplus_read() 66 " dir object %X (%d blocks)", id, size); in adfs_fplus_read() 75 block = __adfs_block_map(sb, id, blk); in adfs_fplus_read() 77 adfs_error(sb, "dir object %X has a hole at offset %d", id, blk); in adfs_fplus_read() 84 id, blk, block); in adfs_fplus_read() 98 "malformed dir end\n", id); in adfs_fplus_read()
|
/fs/xfs/ |
D | xfs_dquot.c | 233 xfs_dqid_t id, in xfs_qm_init_dquot_blk() argument 250 curid = id - (id % q->qi_dqperchunk); in xfs_qm_init_dquot_blk() 473 xfs_dqid_t id = be32_to_cpu(dqp->q_core.d_id); in xfs_qm_dqtobp() local 478 dqp->q_fileoffset = (xfs_fileoff_t)id / mp->m_quotainfo->qi_dqperchunk; in xfs_qm_dqtobp() 506 dqp->q_bufoffset = (id % mp->m_quotainfo->qi_dqperchunk) * in xfs_qm_dqtobp() 567 xfs_dqid_t id, in xfs_qm_dqread() argument 581 dqp->q_core.d_id = cpu_to_be32(id); in xfs_qm_dqread() 700 xfs_dqid_t *id, in xfs_dq_get_next_id() argument 711 next_id = *id + 1; in xfs_dq_get_next_id() 714 if (next_id < *id) in xfs_dq_get_next_id() [all …]
|
D | xfs_quotaops.c | 234 xfs_dqid_t id; in xfs_fs_get_dqblk() local 241 id = from_kqid(&init_user_ns, qid); in xfs_fs_get_dqblk() 242 return xfs_qm_scall_getquota(mp, &id, in xfs_fs_get_dqblk() 255 xfs_dqid_t id; in xfs_fs_get_nextdqblk() local 262 id = from_kqid(&init_user_ns, *qid); in xfs_fs_get_nextdqblk() 263 ret = xfs_qm_scall_getquota(mp, &id, in xfs_fs_get_nextdqblk() 270 *qid = make_kqid(current_user_ns(), qid->type, id); in xfs_fs_get_nextdqblk()
|
D | xfs_qm_syscalls.c | 397 xfs_dqid_t id, in xfs_qm_scall_setqlim() argument 428 error = xfs_qm_dqget(mp, NULL, id, type, XFS_QMOPT_DQALLOC, &dqp); in xfs_qm_scall_setqlim() 458 if (id == 0) { in xfs_qm_scall_setqlim() 474 if (id == 0) { in xfs_qm_scall_setqlim() 491 if (id == 0) { in xfs_qm_scall_setqlim() 509 if (id == 0) { in xfs_qm_scall_setqlim() 629 xfs_dqid_t *id, in xfs_qm_scall_getquota() argument 642 error = xfs_qm_dqget(mp, NULL, *id, type, dqget_flags, &dqp); in xfs_qm_scall_getquota() 656 *id = be32_to_cpu(dqp->q_core.d_id); in xfs_qm_scall_getquota() 699 *id != 0) { in xfs_qm_scall_getquota()
|
/fs/notify/dnotify/ |
D | dnotify.c | 150 void dnotify_flush(struct file *filp, fl_owner_t id) in dnotify_flush() argument 173 if ((dn->dn_owner == id) && (dn->dn_filp == filp)) { in dnotify_flush() 228 fl_owner_t id, int fd, struct file *filp, __u32 mask) in attach_dn() argument 235 if ((odn->dn_owner == id) && (odn->dn_filp == filp)) { in attach_dn() 246 dn->dn_owner = id; in attach_dn() 264 fl_owner_t id = current->files; in fcntl_dirnotify() local 280 dnotify_flush(filp, id); in fcntl_dirnotify() 356 error = attach_dn(dn, dn_mark, id, fd, filp, mask); in fcntl_dirnotify()
|
/fs/cifs/ |
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/affs/ |
D | inode.c | 25 u16 id; in affs_iget() local 74 id = be16_to_cpu(tail->uid); in affs_iget() 75 if (id == 0 || affs_test_opt(sbi->s_flags, SF_SETUID)) in affs_iget() 77 else if (id == 0xFFFF && affs_test_opt(sbi->s_flags, SF_MUFS)) in affs_iget() 80 i_uid_write(inode, id); in affs_iget() 82 id = be16_to_cpu(tail->gid); in affs_iget() 83 if (id == 0 || affs_test_opt(sbi->s_flags, SF_SETGID)) in affs_iget() 85 else if (id == 0xFFFF && affs_test_opt(sbi->s_flags, SF_MUFS)) in affs_iget() 88 i_gid_write(inode, id); in affs_iget()
|
/fs/hfsplus/ |
D | dir.c | 68 cnid = be32_to_cpu(entry.folder.id); in hfsplus_lookup() 75 cnid = be32_to_cpu(entry.file.id); in hfsplus_lookup() 220 be32_to_cpu(entry.folder.id)) in hfsplus_readdir() 223 be32_to_cpu(entry.folder.id), DT_DIR)) in hfsplus_readdir() 250 be32_to_cpu(entry.file.id), type)) in hfsplus_readdir() 309 u32 cnid, id; in hfsplus_link() local 320 get_random_bytes(&id, sizeof(cnid)); in hfsplus_link() 321 id &= 0x3fffffff; in hfsplus_link() 323 str.len = sprintf(name, "iNode%d", id); in hfsplus_link() 332 HFSPLUS_I(inode)->linkid = id; in hfsplus_link()
|
/fs/dlm/ |
D | lockspace.h | 19 struct dlm_ls *dlm_find_lockspace_global(uint32_t id); 20 struct dlm_ls *dlm_find_lockspace_local(void *id);
|
/fs/nfs_common/ |
D | nfsacl.c | 151 unsigned int id; in xdr_nfsace_decode() local 164 id = ntohl(*p++); in xdr_nfsace_decode() 169 entry->e_uid = make_kuid(&init_user_ns, id); in xdr_nfsace_decode() 174 entry->e_gid = make_kgid(&init_user_ns, id); in xdr_nfsace_decode()
|