Home
last modified time | relevance | path

Searched refs:qid (Results 1 – 22 of 22) sorted by relevance

/fs/xfs/
Dxfs_quotaops.c230 struct kqid qid, in xfs_fs_get_dqblk() argument
241 id = from_kqid(&init_user_ns, qid); in xfs_fs_get_dqblk()
243 xfs_quota_type(qid.type), qdq, 0); in xfs_fs_get_dqblk()
250 struct kqid *qid, in xfs_fs_get_nextdqblk() argument
262 id = from_kqid(&init_user_ns, *qid); in xfs_fs_get_nextdqblk()
264 xfs_quota_type(qid->type), qdq, in xfs_fs_get_nextdqblk()
270 *qid = make_kqid(current_user_ns(), qid->type, id); in xfs_fs_get_nextdqblk()
278 struct kqid qid, in xfs_fs_set_dqblk() argument
290 return xfs_qm_scall_setqlim(mp, from_kqid(&init_user_ns, qid), in xfs_fs_set_dqblk()
291 xfs_quota_type(qid.type), qdq); in xfs_fs_set_dqblk()
/fs/9p/
Dcache.c111 memcpy(buffer, &v9inode->qid.path, sizeof(v9inode->qid.path)); in v9fs_cache_inode_get_key()
113 &v9inode->vfs_inode, v9inode->qid.path); in v9fs_cache_inode_get_key()
114 return sizeof(v9inode->qid.path); in v9fs_cache_inode_get_key()
131 memcpy(buffer, &v9inode->qid.version, sizeof(v9inode->qid.version)); in v9fs_cache_inode_get_aux()
133 &v9inode->vfs_inode, v9inode->qid.version); in v9fs_cache_inode_get_aux()
134 return sizeof(v9inode->qid.version); in v9fs_cache_inode_get_aux()
144 if (buflen != sizeof(v9inode->qid.version)) in v9fs_cache_inode_check_aux()
147 if (memcmp(buffer, &v9inode->qid.version, in v9fs_cache_inode_check_aux()
148 sizeof(v9inode->qid.version))) in v9fs_cache_inode_check_aux()
Dvfs_inode_dotl.c84 if (memcmp(&v9inode->qid.version, in v9fs_test_inode_dotl()
85 &st->qid.version, sizeof(v9inode->qid.version))) in v9fs_test_inode_dotl()
88 if (v9inode->qid.type != st->qid.type) in v9fs_test_inode_dotl()
91 if (v9inode->qid.path != st->qid.path) in v9fs_test_inode_dotl()
107 memcpy(&v9inode->qid, &st->qid, sizeof(st->qid)); in v9fs_set_inode_dotl()
113 struct p9_qid *qid, in v9fs_qid_iget_dotl() argument
129 i_ino = v9fs_qid2ino(qid); in v9fs_qid_iget_dotl()
171 inode = v9fs_qid_iget_dotl(sb, &st->qid, fid, st, new); in v9fs_inode_from_fid_dotl()
251 struct p9_qid qid; in v9fs_vfs_atomic_open_dotl() local
305 mode, gid, &qid); in v9fs_vfs_atomic_open_dotl()
[all …]
Dvfs_inode.c217 wstat->qid.type = ~0; in v9fs_blank_wstat()
218 wstat->qid.version = ~0; in v9fs_blank_wstat()
219 *((long long *)&wstat->qid.path) = ~0; in v9fs_blank_wstat()
480 if (memcmp(&v9inode->qid.version, in v9fs_test_inode()
481 &st->qid.version, sizeof(v9inode->qid.version))) in v9fs_test_inode()
484 if (v9inode->qid.type != st->qid.type) in v9fs_test_inode()
487 if (v9inode->qid.path != st->qid.path) in v9fs_test_inode()
502 memcpy(&v9inode->qid, &st->qid, sizeof(st->qid)); in v9fs_set_inode()
507 struct p9_qid *qid, in v9fs_qid_iget() argument
524 i_ino = v9fs_qid2ino(qid); in v9fs_qid_iget()
[all …]
Dvfs_dir.c159 v9fs_qid2ino(&st.qid), dt_type(&st)); in v9fs_dir_readdir()
216 v9fs_qid2ino(&curdirent.qid), in v9fs_dir_readdir_dotl()
Dvfs_super.c167 d_inode(root)->i_ino = v9fs_qid2ino(&st->qid); in v9fs_mount()
178 d_inode(root)->i_ino = v9fs_qid2ino(&st->qid); in v9fs_mount()
Dv9fs_vfs.h63 ino_t v9fs_qid2ino(struct p9_qid *qid);
Dv9fs.h129 struct p9_qid qid; member
Dv9fs.c565 memset(&v9inode->qid, 0, sizeof(v9inode->qid)); in v9fs_inode_init_once()
/fs/quota/
Dquota.c206 struct kqid qid; in quota_getquota() local
213 qid = make_kqid(current_user_ns(), type, id); in quota_getquota()
214 if (!qid_has_mapping(sb->s_user_ns, qid)) in quota_getquota()
216 ret = sb->s_qcop->get_dqblk(sb, qid, &fdq); in quota_getquota()
232 struct kqid qid; in quota_getnextquota() local
239 qid = make_kqid(current_user_ns(), type, id); in quota_getnextquota()
240 if (!qid_has_mapping(sb->s_user_ns, qid)) in quota_getnextquota()
242 ret = sb->s_qcop->get_nextdqblk(sb, &qid, &fdq); in quota_getnextquota()
247 idq.dqb_id = from_kqid(current_user_ns(), qid); in quota_getnextquota()
284 struct kqid qid; in quota_setquota() local
[all …]
Dkqid.c119 bool qid_valid(struct kqid qid) in qid_valid() argument
121 switch (qid.type) { in qid_valid()
123 return uid_valid(qid.uid); in qid_valid()
125 return gid_valid(qid.gid); in qid_valid()
127 return projid_valid(qid.projid); in qid_valid()
Dnetlink.c42 void quota_send_warning(struct kqid qid, dev_t dev, in quota_send_warning() argument
68 ret = nla_put_u32(skb, QUOTA_NL_A_QTYPE, qid.type); in quota_send_warning()
72 from_kqid_munged(&init_user_ns, qid), in quota_send_warning()
Ddquot.c253 hashfn(const struct super_block *sb, struct kqid qid) in hashfn() argument
255 unsigned int id = from_kqid(&init_user_ns, qid); in hashfn()
256 int type = qid.type; in hashfn()
279 struct kqid qid) in find_dquot() argument
286 if (dquot->dq_sb == sb && qid_eq(dquot->dq_id, qid)) in find_dquot()
839 struct dquot *dqget(struct super_block *sb, struct kqid qid) in dqget() argument
841 unsigned int hashent = hashfn(sb, qid); in dqget()
844 if (!qid_has_mapping(sb->s_user_ns, qid)) in dqget()
847 if (!sb_has_quota_active(sb, qid.type)) in dqget()
852 if (!sb_has_quota_active(sb, qid.type)) { in dqget()
[all …]
Dquota_tree.c35 static int get_index(struct qtree_mem_dqinfo *info, struct kqid qid, int depth) in get_index() argument
37 qid_t id = from_kqid(&init_user_ns, qid); in get_index()
722 int qtree_get_next_id(struct qtree_mem_dqinfo *info, struct kqid *qid) in qtree_get_next_id() argument
724 qid_t id = from_kqid(&init_user_ns, *qid); in qtree_get_next_id()
730 *qid = make_kqid(&init_user_ns, qid->type, id); in qtree_get_next_id()
Dquota_v2.c307 static int v2_get_next_id(struct super_block *sb, struct kqid *qid) in v2_get_next_id() argument
309 return qtree_get_next_id(sb_dqinfo(sb, qid->type)->dqi_priv, qid); in v2_get_next_id()
/fs/gfs2/
Dquota.c89 const struct kqid qid) in gfs2_qd_hash() argument
94 h = jhash(&qid, sizeof(struct kqid), h); in gfs2_qd_hash()
199 struct kqid qid = qd->qd_id; in qd2index() local
200 return (2 * (u64)from_kqid(&init_user_ns, qid)) + in qd2index()
201 ((qid.type == USRQUOTA) ? 0 : 1); in qd2index()
214 static struct gfs2_quota_data *qd_alloc(unsigned hash, struct gfs2_sbd *sdp, struct kqid qid) in qd_alloc() argument
226 qd->qd_id = qid; in qd_alloc()
245 struct kqid qid) in gfs2_qd_search_bucket() argument
251 if (!qid_eq(qd->qd_id, qid)) in gfs2_qd_search_bucket()
265 static int qd_get(struct gfs2_sbd *sdp, struct kqid qid, in qd_get() argument
[all …]
Dsys.c198 struct kqid qid; in quota_refresh_user_store() local
209 qid = make_kqid(current_user_ns(), USRQUOTA, id); in quota_refresh_user_store()
210 if (!qid_valid(qid)) in quota_refresh_user_store()
213 error = gfs2_quota_refresh(sdp, qid); in quota_refresh_user_store()
220 struct kqid qid; in quota_refresh_group_store() local
231 qid = make_kqid(current_user_ns(), GRPQUOTA, id); in quota_refresh_group_store()
232 if (!qid_valid(qid)) in quota_refresh_group_store()
235 error = gfs2_quota_refresh(sdp, qid); in quota_refresh_group_store()
Dquota.h35 extern int gfs2_quota_refresh(struct gfs2_sbd *sdp, struct kqid qid);
/fs/ntfs/
Dquota.c41 const le32 qid = QUOTA_DEFAULTS_ID; in ntfs_mark_quotas_out_of_date() local
57 err = ntfs_index_lookup(&qid, sizeof(qid), ictx); in ntfs_mark_quotas_out_of_date()
/fs/ocfs2/
Dquota_global.c863 static int ocfs2_get_next_id(struct super_block *sb, struct kqid *qid) in ocfs2_get_next_id() argument
865 int type = qid->type; in ocfs2_get_next_id()
869 trace_ocfs2_get_next_id(from_kqid(&init_user_ns, *qid), type); in ocfs2_get_next_id()
880 status = qtree_get_next_id(&info->dqi_gi, qid); in ocfs2_get_next_id()
/fs/ext4/
Dsuper.c1213 static int ext4_get_next_id(struct super_block *sb, struct kqid *qid);
5098 struct kqid qid; in ext4_statfs_project() local
5103 qid = make_kqid_projid(projid); in ext4_statfs_project()
5104 dquot = dqget(sb, qid); in ext4_statfs_project()
5542 static int ext4_get_next_id(struct super_block *sb, struct kqid *qid) in ext4_get_next_id() argument
5546 if (!sb_has_quota_loaded(sb, qid->type)) in ext4_get_next_id()
5548 ops = sb_dqopt(sb)->ops[qid->type]; in ext4_get_next_id()
5551 return dquot_get_next_id(sb, qid); in ext4_get_next_id()
/fs/f2fs/
Dsuper.c1109 struct kqid qid; in f2fs_statfs_project() local
1114 qid = make_kqid_projid(projid); in f2fs_statfs_project()
1115 dquot = dqget(sb, qid); in f2fs_statfs_project()