/fs/ |
D | binfmt_flat.c | 73 static int load_flat_shared_library(int id, struct lib_info *p); 303 int id; in calc_reloc() local 311 id = curid; /* Relocs of 0 are always self referring */ in calc_reloc() 313 id = (r >> 24) & 0xff; /* Find ID for this reloc */ in calc_reloc() 316 if (id >= MAX_SHARED_LIBS) { in calc_reloc() 318 (unsigned) r, id); in calc_reloc() 321 if (curid != id) { in calc_reloc() 324 "(%d != %d)", (unsigned) r, curid, id); in calc_reloc() 326 } else if ( ! p->lib_list[id].loaded && in calc_reloc() 327 load_flat_shared_library(id, p) > (unsigned long) -4096) { in calc_reloc() [all …]
|
D | quota.c | 23 static int generic_quotactl_valid(struct super_block *sb, int type, int cmd, qid_t id) in generic_quotactl_valid() argument 82 if (((type == USRQUOTA && current_euid() != id) || in generic_quotactl_valid() 83 (type == GRPQUOTA && !in_egroup_p(id))) && in generic_quotactl_valid() 95 static int xqm_quotactl_valid(struct super_block *sb, int type, int cmd, qid_t id) in xqm_quotactl_valid() argument 133 if (((type == XQM_USRQUOTA && current_euid() != id) || in xqm_quotactl_valid() 134 (type == XQM_GRPQUOTA && !in_egroup_p(id))) && in xqm_quotactl_valid() 145 static int check_quotactl_valid(struct super_block *sb, int type, int cmd, qid_t id) in check_quotactl_valid() argument 150 error = xqm_quotactl_valid(sb, type, cmd, id); in check_quotactl_valid() 152 error = generic_quotactl_valid(sb, type, cmd, id); in check_quotactl_valid() 154 error = security_quotactl(cmd, type, id, sb); in check_quotactl_valid() [all …]
|
D | posix_acl.c | 76 unsigned int id = 0; /* keep gcc happy */ in posix_acl_valid() local 85 id = 0; in posix_acl_valid() 95 pa->e_id < id) in posix_acl_valid() 97 id = pa->e_id + 1; in posix_acl_valid() 103 id = 0; in posix_acl_valid() 113 pa->e_id < id) in posix_acl_valid() 115 id = pa->e_id + 1; in posix_acl_valid()
|
D | dquot.c | 163 static struct quota_format_type *find_quota_format(int id) in find_quota_format() argument 168 for (actqf = quota_formats; actqf && actqf->qf_fmt_id != id; actqf = actqf->qf_next); in find_quota_format() 174 for (qm = 0; module_names[qm].qm_fmt_id && module_names[qm].qm_fmt_id != id; qm++); in find_quota_format() 179 for (actqf = quota_formats; actqf && actqf->qf_fmt_id != id; actqf = actqf->qf_next); in find_quota_format() 220 hashfn(const struct super_block *sb, unsigned int id, int type) in hashfn() argument 224 tmp = (((unsigned long)sb>>L1_CACHE_SHIFT) ^ id) * (MAXQUOTAS - type); in hashfn() 242 …e struct dquot *find_dquot(unsigned int hashent, struct super_block *sb, unsigned int id, int type) in find_dquot() argument 249 if (dquot->dq_sb == sb && dquot->dq_id == id && dquot->dq_type == type) in find_dquot() 711 struct dquot *dqget(struct super_block *sb, unsigned int id, int type) in dqget() argument 713 unsigned int hashent = hashfn(sb, id, type); in dqget() [all …]
|
/fs/nfsd/ |
D | nfs4idmap.c | 71 uid_t id; member 88 new->id = itm->id; in ent_init() 124 hash = hash_long(hash ^ ent->id, ENT_HASHBITS); in idtoname_hash() 141 snprintf(idstr, sizeof(idstr), "%u", ent->id); in idtoname_request() 154 return (a->id == b->id && a->type == b->type && in idtoname_match() 170 ent->id); in idtoname_show() 237 ent.id = simple_strtoul(buf1, &bp, 10); in idtoname_parse() 351 seq_printf(m, " %u", ent->id); in nametoid_show() 416 error = get_int(&buf, &ent.id); in nametoid_parse() 605 uid_t *id) in idmap_name_to_id() argument [all …]
|
/fs/nfs/ |
D | idmap.c | 174 idmap_id_hash(struct idmap_hashtable* h, __u32 id) in idmap_id_hash() argument 176 return &h->h_entries[fnvhash32(&id, sizeof(id)) % IDMAP_HASH_SZ]; in idmap_id_hash() 180 idmap_lookup_id(struct idmap_hashtable *h, __u32 id) in idmap_lookup_id() argument 182 struct idmap_hashent *he = idmap_id_hash(h, id); in idmap_lookup_id() 183 if (he->ih_id != id || he->ih_namelen == 0) in idmap_lookup_id() 202 idmap_alloc_id(struct idmap_hashtable *h, __u32 id) in idmap_alloc_id() argument 204 return idmap_id_hash(h, id); in idmap_alloc_id() 209 size_t namelen, __u32 id) in idmap_update_entry() argument 211 he->ih_id = id; in idmap_update_entry() 223 const char *name, size_t namelen, __u32 *id) in nfs_idmap_id() argument [all …]
|
D | nfs4state.c | 152 get_random_bytes(&new->id, sizeof(new->id)); in nfs_alloc_unique_id() 153 new->id &= mask; in nfs_alloc_unique_id() 154 if (new->id < minval) in nfs_alloc_unique_id() 155 new->id += minval; in nfs_alloc_unique_id() 164 if (new->id < pos->id) in nfs_alloc_unique_id() 166 else if (new->id > pos->id) in nfs_alloc_unique_id() 176 new->id++; in nfs_alloc_unique_id() 177 if (new->id < minval || (new->id & mask) != new->id) { in nfs_alloc_unique_id() 178 new->id = minval; in nfs_alloc_unique_id() 185 if (new->id < pos->id) in nfs_alloc_unique_id() [all …]
|
/fs/partitions/ |
D | atari.c | 22 isalnum((pi)->id[0]) && isalnum((pi)->id[1]) && isalnum((pi)->id[2]) && \ 74 if (memcmp (pi->id, "XGM", 3) != 0) { in atari_partition() 110 if (memcmp( xrs->part[1].id, "XGM", 3 ) != 0) { in atari_partition() 129 if (OK_id(pi->id)) { in atari_partition() 133 if (!((pi->flg & 1) && OK_id(pi->id))) in atari_partition()
|
D | sun.c | 27 __be16 id; in sun_partition() member 111 if (be16_to_cpu(label->vtoc.infos[i].id) == LINUX_RAID_PARTITION) in sun_partition() 113 else if (be16_to_cpu(label->vtoc.infos[i].id) == SUN_WHOLE_DISK) in sun_partition()
|
D | msdos.c | 402 unsigned char id; member 513 unsigned char id = SYS_IND(p); in msdos_partition() local 519 for (n = 0; subtypes[n].parse && id != subtypes[n].id; n++) in msdos_partition()
|
/fs/xfs/quota/ |
D | xfs_dquot.c | 89 xfs_dqid_t id, in xfs_qm_dqinit() argument 97 dqp->q_core.d_id = cpu_to_be32(id); in xfs_qm_dqinit() 186 xfs_dqid_t id, in xfs_qm_dqinit_core() argument 195 d->dd_diskdq.d_id = cpu_to_be32(id); in xfs_qm_dqinit_core() 378 xfs_dqid_t id, in xfs_qm_init_dquot_blk() argument 394 curid = id - (id % XFS_QM_DQPERBLK(mp)); in xfs_qm_init_dquot_blk() 542 xfs_dqid_t id; in xfs_qm_dqtobp() local 547 id = be32_to_cpu(dqp->q_core.d_id); in xfs_qm_dqtobp() 556 dqp->q_fileoffset = (xfs_fileoff_t)id / XFS_QM_DQPERBLK(mp); in xfs_qm_dqtobp() 585 dqp->q_bufoffset = (id % XFS_QM_DQPERBLK(mp)) * in xfs_qm_dqtobp() [all …]
|
D | xfs_qm_syscalls.c | 86 int id, in xfs_qm_quotactl() argument 149 error = xfs_qm_scall_getquota(mp, (xfs_dqid_t)id, XFS_DQ_USER, in xfs_qm_quotactl() 153 error = xfs_qm_scall_getquota(mp, (xfs_dqid_t)id, XFS_DQ_GROUP, in xfs_qm_quotactl() 157 error = xfs_qm_scall_getquota(mp, (xfs_dqid_t)id, XFS_DQ_PROJ, in xfs_qm_quotactl() 164 error = xfs_qm_scall_setqlim(mp, (xfs_dqid_t)id, XFS_DQ_USER, in xfs_qm_quotactl() 170 error = xfs_qm_scall_setqlim(mp, (xfs_dqid_t)id, XFS_DQ_GROUP, in xfs_qm_quotactl() 176 error = xfs_qm_scall_setqlim(mp, (xfs_dqid_t)id, XFS_DQ_PROJ, in xfs_qm_quotactl() 588 xfs_dqid_t id, in xfs_qm_scall_setqlim() argument 624 if ((error = xfs_qm_dqget(mp, NULL, id, type, XFS_QMOPT_DQALLOC, &dqp))) { in xfs_qm_scall_setqlim() 646 if (id == 0) { in xfs_qm_scall_setqlim() [all …]
|
D | xfs_quota_priv.h | 77 #define XFS_DQ_HASHVAL(mp, id) (((__psunsigned_t)(mp) + \ argument 78 (__psunsigned_t)(id)) & \ 80 #define XFS_DQ_HASH(mp, id, type) (type == XFS_DQ_USER ? \ argument 82 XFS_DQ_HASHVAL(mp, id)) : \ 84 XFS_DQ_HASHVAL(mp, id)))
|
/fs/notify/dnotify/ |
D | dnotify.c | 40 void dnotify_flush(struct file *filp, fl_owner_t id) in dnotify_flush() argument 52 if ((dn->dn_owner == id) && (dn->dn_filp == filp)) { in dnotify_flush() 69 fl_owner_t id = current->files; in fcntl_dirnotify() local 74 dnotify_flush(filp, id); in fcntl_dirnotify() 88 if ((odn->dn_owner == id) && (odn->dn_filp == filp)) { in fcntl_dirnotify() 113 dn->dn_owner = id; in fcntl_dirnotify()
|
/fs/adfs/ |
D | dir_fplus.c | 23 adfs_fplus_read(struct super_block *sb, unsigned int id, unsigned int sz, struct adfs_dir *dir) in adfs_fplus_read() argument 33 block = __adfs_block_map(sb, id, 0); in adfs_fplus_read() 35 adfs_error(sb, "dir object %X has a hole at offset 0", id); in adfs_fplus_read() 58 block = __adfs_block_map(sb, id, blk); in adfs_fplus_read() 60 adfs_error(sb, "dir object %X has a hole at offset %d", id, blk); in adfs_fplus_read()
|
/fs/affs/ |
D | inode.c | 28 u16 id; in affs_iget() local 78 id = be16_to_cpu(tail->uid); in affs_iget() 79 if (id == 0 || sbi->s_flags & SF_SETUID) in affs_iget() 81 else if (id == 0xFFFF && sbi->s_flags & SF_MUFS) in affs_iget() 84 inode->i_uid = id; in affs_iget() 86 id = be16_to_cpu(tail->gid); in affs_iget() 87 if (id == 0 || sbi->s_flags & SF_SETGID) in affs_iget() 89 else if (id == 0xFFFF && sbi->s_flags & SF_MUFS) in affs_iget() 92 inode->i_gid = id; in affs_iget()
|
/fs/hfsplus/ |
D | dir.c | 61 cnid = be32_to_cpu(entry.folder.id); in hfsplus_lookup() 68 cnid = be32_to_cpu(entry.file.id); in hfsplus_lookup() 184 HFSPLUS_SB(sb).hidden_dir->i_ino == be32_to_cpu(entry.folder.id)) in hfsplus_readdir() 187 be32_to_cpu(entry.folder.id), DT_DIR)) in hfsplus_readdir() 196 be32_to_cpu(entry.file.id), DT_REG)) in hfsplus_readdir() 268 u32 cnid, id; in hfsplus_link() local 276 get_random_bytes(&id, sizeof(cnid)); in hfsplus_link() 277 id &= 0x3fffffff; in hfsplus_link() 279 str.len = sprintf(name, "iNode%d", id); in hfsplus_link() 288 HFSPLUS_I(inode).dev = id; in hfsplus_link()
|
D | btree.c | 20 struct hfs_btree *hfs_btree_open(struct super_block *sb, u32 id) in hfs_btree_open() argument 36 tree->cnid = id; in hfs_btree_open() 37 inode = hfsplus_iget(sb, id); in hfs_btree_open() 61 if (id == HFSPLUS_EXT_CNID) { in hfs_btree_open() 63 } else if (id == HFSPLUS_CAT_CNID) { in hfs_btree_open()
|
/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);
|
D | netlink.c | 19 .id = GENL_ID_GENERATE, 113 data->id = lkb->lkb_id; in fill_data()
|
/fs/gfs2/ |
D | sys.c | 126 u32 id; in quota_refresh_user_store() local 131 id = simple_strtoul(buf, NULL, 0); in quota_refresh_user_store() 133 gfs2_quota_refresh(sdp, 1, id); in quota_refresh_user_store() 140 u32 id; in quota_refresh_group_store() local 145 id = simple_strtoul(buf, NULL, 0); in quota_refresh_group_store() 147 gfs2_quota_refresh(sdp, 0, id); in quota_refresh_group_store() 160 GFS2_ATTR(id, 0444, id_show, NULL);
|
D | quota.c | 93 static int qd_alloc(struct gfs2_sbd *sdp, int user, u32 id, in qd_alloc() argument 104 qd->qd_id = id; in qd_alloc() 109 error = gfs2_glock_get(sdp, 2 * (u64)id + !user, in qd_alloc() 128 static int qd_get(struct gfs2_sbd *sdp, int user, u32 id, int create, in qd_get() argument 140 if (qd->qd_id == id && in qd_get() 169 error = qd_alloc(sdp, user, id, &new_qd); in qd_get() 422 static int qdsb_get(struct gfs2_sbd *sdp, int user, u32 id, int create, in qdsb_get() argument 427 error = qd_get(sdp, user, id, create, qdp); in qdsb_get() 1074 int gfs2_quota_refresh(struct gfs2_sbd *sdp, int user, u32 id) in gfs2_quota_refresh() argument 1080 error = qd_get(sdp, user, id, CREATE, &qd); in gfs2_quota_refresh()
|
/fs/fat/ |
D | cache.c | 26 unsigned int id; member 105 cid->id = MSDOS_I(inode)->cache_valid_id; in fat_cache_lookup() 142 if (new->id != FAT_CACHE_VALID && in fat_cache_add() 143 new->id != MSDOS_I(inode)->cache_valid_id) in fat_cache_add() 211 cid->id = FAT_CACHE_VALID; in cache_init()
|
/fs/squashfs/ |
D | id.c | 48 unsigned int *id) in squashfs_get_id() argument 62 *id = le32_to_cpu(disk_id); in squashfs_get_id()
|
/fs/hfs/ |
D | btree.c | 17 struct hfs_btree *hfs_btree_open(struct super_block *sb, u32 id, btree_keycmp keycmp) in hfs_btree_open() argument 33 tree->cnid = id; in hfs_btree_open() 36 tree->inode = iget_locked(sb, id); in hfs_btree_open() 44 switch (id) { in hfs_btree_open() 84 switch (id) { in hfs_btree_open()
|