/fs/nfsd/ |
D | nfs4idmap.c | 68 u32 id; member 84 new->id = itm->id; in ent_init() 118 hash = hash_long(hash ^ ent->id, ENT_HASHBITS); in idtoname_hash() 135 snprintf(idstr, sizeof(idstr), "%u", ent->id); in idtoname_request() 148 return (a->id == b->id && a->type == b->type && in idtoname_match() 164 ent->id); in idtoname_show() 231 ent.id = simple_strtoul(buf1, &bp, 10); in idtoname_parse() 341 seq_printf(m, " %u", ent->id); in nametoid_show() 406 error = get_int(&buf, &ent.id); in nametoid_parse() 531 u32 *id) in idmap_name_to_id() argument [all …]
|
/fs/nfs/ |
D | pnfs_dev.c | 50 nfs4_print_deviceid(const struct nfs4_deviceid *id) in nfs4_print_deviceid() argument 52 u32 *p = (u32 *)id; in nfs4_print_deviceid() 61 nfs4_deviceid_hash(const struct nfs4_deviceid *id) in nfs4_deviceid_hash() argument 63 unsigned char *cptr = (unsigned char *)id->data; in nfs4_deviceid_hash() 76 const struct nfs_client *clp, const struct nfs4_deviceid *id, in _lookup_deviceid() argument 83 !memcmp(&d->deviceid, id, sizeof(*id))) { in _lookup_deviceid() 100 const struct nfs_client *clp, const struct nfs4_deviceid *id, in _find_get_deviceid() argument 106 d = _lookup_deviceid(ld, clp, id, hash); in _find_get_deviceid() 115 const struct nfs_client *clp, const struct nfs4_deviceid *id) in nfs4_find_get_deviceid() argument 117 return _find_get_deviceid(ld, clp, id, nfs4_deviceid_hash(id)); in nfs4_find_get_deviceid() [all …]
|
D | idmap.c | 168 static int nfs_map_numeric_to_string(__u32 id, char *buf, size_t buflen) in nfs_map_numeric_to_string() argument 170 return snprintf(buf, buflen, "%u", id); in nfs_map_numeric_to_string() 337 static ssize_t nfs_idmap_lookup_name(__u32 id, const char *type, char *buf, in nfs_idmap_lookup_name() argument 344 id_len = snprintf(id_str, sizeof(id_str), "%u", id); in nfs_idmap_lookup_name() 353 __u32 *id, struct idmap *idmap) in nfs_idmap_lookup_id() argument 365 *id = (__u32)id_long; in nfs_idmap_lookup_id() 846 __u32 id = -1; in nfs_map_name_to_uid() local 849 if (!nfs_map_string_to_numeric(name, namelen, &id)) in nfs_map_name_to_uid() 850 ret = nfs_idmap_lookup_id(name, namelen, "uid", &id, idmap); in nfs_map_name_to_uid() 852 *uid = make_kuid(&init_user_ns, id); in nfs_map_name_to_uid() [all …]
|
D | pnfs.c | 54 find_pnfs_driver_locked(u32 id) in find_pnfs_driver_locked() argument 59 if (local->id == id) in find_pnfs_driver_locked() 63 dprintk("%s: Searching for id %u, found %p\n", __func__, id, local); in find_pnfs_driver_locked() 68 find_pnfs_driver(u32 id) in find_pnfs_driver() argument 73 local = find_pnfs_driver_locked(id); in find_pnfs_driver() 104 u32 id) in set_pnfs_layoutdriver() argument 108 if (id == 0) in set_pnfs_layoutdriver() 113 __func__, id, server->nfs_client->cl_exchange_flags); in set_pnfs_layoutdriver() 116 ld_type = find_pnfs_driver(id); in set_pnfs_layoutdriver() 118 request_module("%s-%u", LAYOUT_NFSV4_1_MODULE_PREFIX, id); in set_pnfs_layoutdriver() [all …]
|
/fs/ |
D | binfmt_flat.c | 88 static int load_flat_shared_library(int id, struct lib_info *p); 316 int id; in calc_reloc() local 324 id = curid; /* Relocs of 0 are always self referring */ in calc_reloc() 326 id = (r >> 24) & 0xff; /* Find ID for this reloc */ in calc_reloc() 329 if (id >= MAX_SHARED_LIBS) { in calc_reloc() 331 (unsigned) r, id); in calc_reloc() 334 if (curid != id) { in calc_reloc() 337 "(%d != %d)", (unsigned) r, curid, id); in calc_reloc() 339 } else if ( ! p->lib_list[id].loaded && in calc_reloc() 340 IS_ERR_VALUE(load_flat_shared_library(id, p))) { in calc_reloc() [all …]
|
/fs/quota/ |
D | quota.c | 22 qid_t id) in check_quotactl_permission() argument 35 if ((type == USRQUOTA && uid_eq(current_euid(), make_kuid(current_user_ns(), id))) || in check_quotactl_permission() 36 (type == GRPQUOTA && in_egroup_p(make_kgid(current_user_ns(), id)))) in check_quotactl_permission() 44 return security_quotactl(cmd, type, id, sb); in check_quotactl_permission() 65 static int quota_quotaon(struct super_block *sb, int type, int cmd, qid_t id, in quota_quotaon() argument 71 return sb->s_qcop->quota_on_meta(sb, type, id); in quota_quotaon() 74 return sb->s_qcop->quota_on(sb, type, id, path); in quota_quotaon() 130 static int quota_getquota(struct super_block *sb, int type, qid_t id, in quota_getquota() argument 140 qid = make_kqid(current_user_ns(), type, id); in quota_getquota() 178 static int quota_setquota(struct super_block *sb, int type, qid_t id, in quota_setquota() argument [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()
|
/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()
|
D | id.c | 46 unsigned int *id) in squashfs_get_id() argument 60 *id = le32_to_cpu(disk_id); in squashfs_get_id()
|
/fs/pstore/ |
D | platform.c | 130 u64 id; in pstore_dump() local 161 ret = psinfo->write(PSTORE_TYPE_DMESG, reason, &id, part, in pstore_dump() 187 u64 id; in pstore_console_write() local 199 psinfo->write(PSTORE_TYPE_CONSOLE, 0, &id, 0, 0, c, psinfo); in pstore_console_write() 223 u64 *id, unsigned int part, int count, in pstore_write_compat() argument 226 return psi->write_buf(type, reason, id, part, psinfo->buf, size, psi); in pstore_write_compat() 231 u64 *id, unsigned int part, in pstore_write_buf_user_compat() argument 253 ret = psi->write_buf(type, reason, id, part, psinfo->buf, in pstore_write_buf_user_compat() 329 u64 id; in pstore_get_records() local 342 while ((size = psi->read(&id, &type, &count, &time, &buf, psi)) > 0) { in pstore_get_records() [all …]
|
D | inode.c | 51 u64 id; member 179 p->psi->erase(p->type, p->id, p->count, in pstore_unlink() 276 int pstore_mkfile(enum pstore_type_id type, char *psname, u64 id, int count, in pstore_mkfile() argument 291 pos->id == id && in pstore_mkfile() 311 private->id = id; in pstore_mkfile() 318 psname, id); in pstore_mkfile() 327 scnprintf(name, sizeof(name), "mce-%s-%lld", psname, id); in pstore_mkfile() 330 scnprintf(name, sizeof(name), "pmsg-%s-%lld", psname, id); in pstore_mkfile() 333 scnprintf(name, sizeof(name), "unknown-%s-%lld", psname, id); in pstore_mkfile() 337 type, psname, id); in pstore_mkfile()
|
D | ram.c | 119 u64 *id, in ramoops_get_next_prz() argument 139 *id = i; in ramoops_get_next_prz() 150 static ssize_t ramoops_pstore_read(u64 *id, enum pstore_type_id *type, in ramoops_pstore_read() argument 160 cxt->max_dump_cnt, id, type, in ramoops_pstore_read() 164 1, id, type, PSTORE_TYPE_CONSOLE, 0); in ramoops_pstore_read() 167 1, id, type, PSTORE_TYPE_FTRACE, 0); in ramoops_pstore_read() 170 1, id, type, PSTORE_TYPE_PMSG, 0); in ramoops_pstore_read() 216 u64 *id, unsigned int part, in ramoops_pstore_write_buf() argument 280 u64 *id, unsigned int part, in ramoops_pstore_write_buf_user() argument 296 static int ramoops_pstore_erase(enum pstore_type_id type, u64 id, int count, in ramoops_pstore_erase() argument [all …]
|
/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() 352 void __reiserfs_panic(struct super_block *sb, const char *id, in __reiserfs_panic() argument 362 sb->s_id, id ? id : "", id ? " " : "", in __reiserfs_panic() 366 id ? id : "", id ? " " : "", function, error_buf); in __reiserfs_panic() 369 void __reiserfs_error(struct super_block *sb, const char *id, in __reiserfs_error() argument 377 __reiserfs_panic(sb, id, function, error_buf); in __reiserfs_error() 379 if (id && id[0]) in __reiserfs_error() 381 sb->s_id, id, function, error_buf); in __reiserfs_error()
|
/fs/sdcardfs/ |
D | lookup.c | 68 userid_t id; member 77 current_userid == ((struct inode_data *)candidate_data)->id) in sdcardfs_inode_test() 89 struct inode *sdcardfs_iget(struct super_block *sb, struct inode *lower_inode, userid_t id) in sdcardfs_iget() argument 98 data.id = id; in sdcardfs_iget() 172 userid_t id) in __sdcardfs_interpose() argument 194 inode = sdcardfs_iget(sb, lower_inode, id); in __sdcardfs_interpose() 217 struct path *lower_path, userid_t id) in sdcardfs_interpose() argument 221 ret_dentry = __sdcardfs_interpose(dentry, sb, lower_path, id); in sdcardfs_interpose() 254 unsigned int flags, struct path *lower_parent_path, userid_t id) in __sdcardfs_lookup() argument 351 __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() 65 " dir object %X (%d blocks)", id, size); in adfs_fplus_read() 74 block = __adfs_block_map(sb, id, blk); in adfs_fplus_read() 76 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/notify/dnotify/ |
D | dnotify.c | 169 void dnotify_flush(struct file *filp, fl_owner_t id) in dnotify_flush() argument 191 if ((dn->dn_owner == id) && (dn->dn_filp == filp)) { in dnotify_flush() 241 fl_owner_t id, int fd, struct file *filp, __u32 mask) in attach_dn() argument 248 if ((odn->dn_owner == id) && (odn->dn_filp == filp)) { in attach_dn() 259 dn->dn_owner = id; in attach_dn() 277 fl_owner_t id = current->files; in fcntl_dirnotify() local 293 dnotify_flush(filp, id); in fcntl_dirnotify() 374 error = attach_dn(dn, dn_mark, id, fd, filp, mask); in fcntl_dirnotify()
|
/fs/xfs/ |
D | xfs_dquot.c | 228 xfs_dqid_t id, in xfs_qm_init_dquot_blk() argument 244 curid = id - (id % q->qi_dqperchunk); in xfs_qm_init_dquot_blk() 331 xfs_dqid_t id = 0; in xfs_dquot_buf_verify() local 359 id = be32_to_cpu(ddq->d_id); in xfs_dquot_buf_verify() 361 error = xfs_qm_dqcheck(mp, ddq, id + i, 0, XFS_QMOPT_DOWARN, in xfs_dquot_buf_verify() 578 xfs_dqid_t id = be32_to_cpu(dqp->q_core.d_id); in xfs_qm_dqtobp() local 581 dqp->q_fileoffset = (xfs_fileoff_t)id / mp->m_quotainfo->qi_dqperchunk; in xfs_qm_dqtobp() 609 dqp->q_bufoffset = (id % mp->m_quotainfo->qi_dqperchunk) * in xfs_qm_dqtobp() 670 xfs_dqid_t id, in xfs_qm_dqread() argument 686 dqp->q_core.d_id = cpu_to_be32(id); in xfs_qm_dqread() [all …]
|
D | xfs_qm_syscalls.c | 476 xfs_dqid_t id, in xfs_qm_scall_setqlim() argument 506 error = xfs_qm_dqget(mp, NULL, id, type, XFS_QMOPT_DQALLOC, &dqp); in xfs_qm_scall_setqlim() 538 if (id == 0) { in xfs_qm_scall_setqlim() 554 if (id == 0) { in xfs_qm_scall_setqlim() 571 if (id == 0) { in xfs_qm_scall_setqlim() 589 if (id == 0) { in xfs_qm_scall_setqlim() 725 xfs_dqid_t id, in xfs_qm_scall_getquota() argument 737 error = xfs_qm_dqget(mp, NULL, id, type, 0, &dqp); in xfs_qm_scall_getquota()
|
/fs/affs/ |
D | inode.c | 29 u16 id; in affs_iget() local 79 id = be16_to_cpu(tail->uid); in affs_iget() 80 if (id == 0 || sbi->s_flags & SF_SETUID) in affs_iget() 82 else if (id == 0xFFFF && sbi->s_flags & SF_MUFS) in affs_iget() 85 i_uid_write(inode, id); in affs_iget() 87 id = be16_to_cpu(tail->gid); in affs_iget() 88 if (id == 0 || sbi->s_flags & SF_SETGID) in affs_iget() 90 else if (id == 0xFFFF && sbi->s_flags & SF_MUFS) in affs_iget() 93 i_gid_write(inode, id); in affs_iget()
|
/fs/hfsplus/ |
D | dir.c | 63 cnid = be32_to_cpu(entry.folder.id); in hfsplus_lookup() 70 cnid = be32_to_cpu(entry.file.id); in hfsplus_lookup() 212 be32_to_cpu(entry.folder.id)) in hfsplus_readdir() 215 be32_to_cpu(entry.folder.id), DT_DIR)) in hfsplus_readdir() 224 be32_to_cpu(entry.file.id), DT_REG)) in hfsplus_readdir() 276 u32 cnid, id; in hfsplus_link() local 287 get_random_bytes(&id, sizeof(cnid)); in hfsplus_link() 288 id &= 0x3fffffff; in hfsplus_link() 290 str.len = sprintf(name, "iNode%d", id); in hfsplus_link() 299 HFSPLUS_I(inode)->linkid = id; in hfsplus_link()
|
/fs/cifs/ |
D | cifsacl.c | 310 uid_t id; in sid_to_id() local 311 memcpy(&id, &sidkey->payload.value, sizeof(uid_t)); in sid_to_id() 312 uid = make_kuid(&init_user_ns, id); in sid_to_id() 317 gid_t id; in sid_to_id() local 318 memcpy(&id, &sidkey->payload.value, sizeof(gid_t)); in sid_to_id() 319 gid = make_kgid(&init_user_ns, id); in sid_to_id() 824 uid_t id; in build_sec_desc() local 831 id = from_kuid(&init_user_ns, uid); in build_sec_desc() 832 rc = id_to_sid(id, SIDOWNER, nowner_sid_ptr); in build_sec_desc() 835 __func__, rc, id); in build_sec_desc() [all …]
|
/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/fat/ |
D | cache.c | 27 unsigned int id; member 106 cid->id = MSDOS_I(inode)->cache_valid_id; in fat_cache_lookup() 143 if (new->id != FAT_CACHE_VALID && in fat_cache_add() 144 new->id != MSDOS_I(inode)->cache_valid_id) in fat_cache_add() 220 cid->id = FAT_CACHE_VALID; in cache_init()
|
/fs/nfs_common/ |
D | nfsacl.c | 153 unsigned int id; in xdr_nfsace_decode() local 166 id = ntohl(*p++); in xdr_nfsace_decode() 171 entry->e_uid = make_kuid(&init_user_ns, id); in xdr_nfsace_decode() 176 entry->e_gid = make_kgid(&init_user_ns, id); in xdr_nfsace_decode()
|