Home
last modified time | relevance | path

Searched refs:id (Results 1 – 25 of 128) sorted by relevance

123456

/fs/nfsd/
Dnfs4idmap.c65 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/
Dbinfmt_flat.c88 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 …]
Daio.c54 unsigned id; /* kernel internal index number */ member
158 unsigned id; member
524 ring->id = ~0U; in aio_setup_ring()
655 ctx->id = i; in ioctx_add_table()
664 ring->id = ctx->id; in ioctx_add_table()
831 WARN_ON(ctx != rcu_access_pointer(table->table[ctx->id])); in kill_ioctx()
832 RCU_INIT_POINTER(table->table[ctx->id], NULL); in kill_ioctx()
1056 unsigned id; in lookup_ioctx() local
1058 if (get_user(id, &ring->id)) in lookup_ioctx()
1064 if (!table || id >= table->nr) in lookup_ioctx()
[all …]
/fs/nfs/
Dpnfs_dev.c53 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 …]
Dnfs4idmap.c171 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 = nfs_map_numeric_to_string(id, id_str, sizeof(id_str)); 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()
724 __u32 id = -1; in nfs_map_name_to_uid() local
727 if (!nfs_map_string_to_numeric(name, namelen, &id)) in nfs_map_name_to_uid()
728 ret = nfs_idmap_lookup_id(name, namelen, "uid", &id, idmap); in nfs_map_name_to_uid()
730 *uid = make_kuid(&init_user_ns, id); in nfs_map_name_to_uid()
[all …]
/fs/xfs/libxfs/
Dxfs_dquot_buf.c54 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/
Dinode.c52 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 …]
Dplatform.c284 u64 id; in pstore_dump() local
345 ret = psinfo->write(PSTORE_TYPE_DMESG, reason, &id, part, in pstore_dump()
384 u64 id; in pstore_console_write() local
395 psinfo->write_buf(PSTORE_TYPE_CONSOLE, 0, &id, 0, in pstore_console_write()
426 u64 *id, unsigned int part, int count, in pstore_write_compat() argument
430 return psi->write_buf(type, reason, id, part, psinfo->buf, compressed, in pstore_write_compat()
436 u64 *id, unsigned int part, in pstore_write_buf_user_compat() argument
458 ret = psi->write_buf(type, reason, id, part, psinfo->buf, in pstore_write_buf_user_compat()
559 u64 id; in pstore_get_records() local
574 while ((size = psi->read(&id, &type, &count, &time, &buf, &compressed, in pstore_get_records()
[all …]
Dram.c127 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
347 u64 *id, unsigned int part, in ramoops_pstore_write_buf_user() argument
363 static int ramoops_pstore_erase(enum pstore_type_id type, u64 id, int count, in ramoops_pstore_erase() argument
[all …]
/fs/reiserfs/
Dprints.c266 void __reiserfs_warning(struct super_block *sb, const char *id, in __reiserfs_warning() argument
272 "%s\n", sb->s_id, id ? id : "", id ? " " : "", in __reiserfs_warning()
276 id ? id : "", id ? " " : "", function, error_buf); in __reiserfs_warning()
356 void __reiserfs_panic(struct super_block *sb, const char *id, in __reiserfs_panic() argument
366 sb->s_id, id ? id : "", id ? " " : "", in __reiserfs_panic()
370 id ? id : "", id ? " " : "", function, error_buf); in __reiserfs_panic()
374 void __reiserfs_error(struct super_block *sb, const char *id, in __reiserfs_error() argument
382 __reiserfs_panic(sb, id, function, error_buf); in __reiserfs_error()
384 if (id && id[0]) in __reiserfs_error()
386 sb->s_id, id, function, error_buf); in __reiserfs_error()
/fs/quota/
Dquota.c23 qid_t id) in check_quotactl_permission() argument
37 if ((type == USRQUOTA && uid_eq(current_euid(), make_kuid(current_user_ns(), id))) || in check_quotactl_permission()
38 (type == GRPQUOTA && in_egroup_p(make_kgid(current_user_ns(), id)))) in check_quotactl_permission()
46 return security_quotactl(cmd, type, id, sb); in check_quotactl_permission()
83 static int quota_quotaon(struct super_block *sb, int type, int cmd, qid_t id, in quota_quotaon() argument
92 return sb->s_qcop->quota_on(sb, type, id, path); in quota_quotaon()
204 static int quota_getquota(struct super_block *sb, int type, qid_t id, in quota_getquota() argument
214 qid = make_kqid(current_user_ns(), type, id); in quota_getquota()
252 static int quota_setquota(struct super_block *sb, int type, qid_t id, in quota_setquota() argument
263 qid = make_kqid(current_user_ns(), type, id); in quota_setquota()
[all …]
Dcompat.c44 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/
Dxattr_id.c48 struct squashfs_xattr_id id; in squashfs_xattr_lookup() local
56 err = squashfs_read_metadata(sb, &id, &start_block, &offset, in squashfs_xattr_lookup()
57 sizeof(id)); in squashfs_xattr_lookup()
61 *xattr = le64_to_cpu(id.xattr); in squashfs_xattr_lookup()
62 *size = le32_to_cpu(id.size); in squashfs_xattr_lookup()
63 *count = le32_to_cpu(id.count); in squashfs_xattr_lookup()
Ddecompressor.c83 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/sdcardfs/
Dlookup.c66 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/
Ddir_fplus.c16 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/notify/dnotify/
Ddnotify.c150 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/affs/
Dinode.c25 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/xfs/
Dxfs_dquot.c229 xfs_dqid_t id, in xfs_qm_init_dquot_blk() argument
245 curid = id - (id % q->qi_dqperchunk); in xfs_qm_init_dquot_blk()
468 xfs_dqid_t id = be32_to_cpu(dqp->q_core.d_id); in xfs_qm_dqtobp() local
472 dqp->q_fileoffset = (xfs_fileoff_t)id / mp->m_quotainfo->qi_dqperchunk; in xfs_qm_dqtobp()
500 dqp->q_bufoffset = (id % mp->m_quotainfo->qi_dqperchunk) * in xfs_qm_dqtobp()
561 xfs_dqid_t id, in xfs_qm_dqread() argument
575 dqp->q_core.d_id = cpu_to_be32(id); in xfs_qm_dqread()
698 xfs_dqid_t id, /* uid/projid/gid depending on type */ in xfs_qm_dqget() argument
735 dqp = radix_tree_lookup(tree, id); in xfs_qm_dqget()
767 error = xfs_qm_dqread(mp, id, type, flags, &dqp); in xfs_qm_dqget()
[all …]
Dxfs_qm_syscalls.c399 xfs_dqid_t id, in xfs_qm_scall_setqlim() argument
429 error = xfs_qm_dqget(mp, NULL, id, type, XFS_QMOPT_DQALLOC, &dqp); in xfs_qm_scall_setqlim()
460 if (id == 0) { in xfs_qm_scall_setqlim()
476 if (id == 0) { in xfs_qm_scall_setqlim()
493 if (id == 0) { in xfs_qm_scall_setqlim()
511 if (id == 0) { in xfs_qm_scall_setqlim()
638 xfs_dqid_t id, in xfs_qm_scall_getquota() argument
650 error = xfs_qm_dqget(mp, NULL, id, type, 0, &dqp); in xfs_qm_scall_getquota()
704 id != 0) { in xfs_qm_scall_getquota()
/fs/hfsplus/
Ddir.c68 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()
303 u32 cnid, id; in hfsplus_link() local
314 get_random_bytes(&id, sizeof(cnid)); in hfsplus_link()
315 id &= 0x3fffffff; in hfsplus_link()
317 str.len = sprintf(name, "iNode%d", id); in hfsplus_link()
326 HFSPLUS_I(inode)->linkid = id; in hfsplus_link()
/fs/cifs/
Dcifsacl.c308 uid_t id; in sid_to_id() local
309 memcpy(&id, &sidkey->payload.data[0], sizeof(uid_t)); in sid_to_id()
310 uid = make_kuid(&init_user_ns, id); in sid_to_id()
315 gid_t id; in sid_to_id() local
316 memcpy(&id, &sidkey->payload.data[0], sizeof(gid_t)); in sid_to_id()
317 gid = make_kgid(&init_user_ns, id); in sid_to_id()
822 uid_t id; in build_sec_desc() local
829 id = from_kuid(&init_user_ns, uid); in build_sec_desc()
830 rc = id_to_sid(id, SIDOWNER, nowner_sid_ptr); in build_sec_desc()
833 __func__, rc, id); in build_sec_desc()
[all …]
/fs/dlm/
Dlockspace.h19 struct dlm_ls *dlm_find_lockspace_global(uint32_t id);
20 struct dlm_ls *dlm_find_lockspace_local(void *id);
/fs/nfs_common/
Dnfsacl.c151 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()
/fs/fat/
Dcache.c25 unsigned int id; member
104 cid->id = MSDOS_I(inode)->cache_valid_id; in fat_cache_lookup()
141 if (new->id != FAT_CACHE_VALID && in fat_cache_add()
142 new->id != MSDOS_I(inode)->cache_valid_id) in fat_cache_add()
218 cid->id = FAT_CACHE_VALID; in cache_init()

123456