Home
last modified time | relevance | path

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

/fs/xfs/
Dxfs_quotaops.c233 struct kqid qid, in xfs_fs_get_dqblk() argument
244 id = from_kqid(&init_user_ns, qid); in xfs_fs_get_dqblk()
246 xfs_quota_type(qid.type), qdq, 0); in xfs_fs_get_dqblk()
253 struct kqid *qid, in xfs_fs_get_nextdqblk() argument
265 id = from_kqid(&init_user_ns, *qid); in xfs_fs_get_nextdqblk()
267 xfs_quota_type(qid->type), qdq, in xfs_fs_get_nextdqblk()
273 *qid = make_kqid(current_user_ns(), qid->type, id); in xfs_fs_get_nextdqblk()
280 struct kqid qid, in xfs_fs_set_dqblk() argument
292 return xfs_qm_scall_setqlim(mp, from_kqid(&init_user_ns, qid), in xfs_fs_set_dqblk()
293 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.c146 v9fs_qid2ino(&st.qid), dt_type(&st)); in v9fs_dir_readdir()
203 v9fs_qid2ino(&curdirent.qid), in v9fs_dir_readdir_dotl()
Dvfs_super.c174 d_inode(root)->i_ino = v9fs_qid2ino(&st->qid); in v9fs_mount()
185 d_inode(root)->i_ino = v9fs_qid2ino(&st->qid); in v9fs_mount()
Dv9fs_vfs.h66 ino_t v9fs_qid2ino(struct p9_qid *qid);
Dv9fs.h130 struct p9_qid qid; member
Dv9fs.c640 memset(&v9inode->qid, 0, sizeof(v9inode->qid)); in v9fs_inode_init_once()
/fs/quota/
Dquota.c204 struct kqid qid; in quota_getquota() local
211 qid = make_kqid(current_user_ns(), type, id); in quota_getquota()
212 if (!qid_has_mapping(sb->s_user_ns, qid)) in quota_getquota()
214 ret = sb->s_qcop->get_dqblk(sb, qid, &fdq); in quota_getquota()
230 struct kqid qid; in quota_getnextquota() local
237 qid = make_kqid(current_user_ns(), type, id); in quota_getnextquota()
238 if (!qid_has_mapping(sb->s_user_ns, qid)) in quota_getnextquota()
240 ret = sb->s_qcop->get_nextdqblk(sb, &qid, &fdq); in quota_getnextquota()
245 idq.dqb_id = from_kqid(current_user_ns(), qid); in quota_getnextquota()
282 struct kqid qid; in quota_setquota() local
[all …]
Dkqid.c120 bool qid_valid(struct kqid qid) in qid_valid() argument
122 switch (qid.type) { in qid_valid()
124 return uid_valid(qid.uid); in qid_valid()
126 return gid_valid(qid.gid); in qid_valid()
128 return projid_valid(qid.projid); in qid_valid()
Dnetlink.c37 void quota_send_warning(struct kqid qid, dev_t dev, in quota_send_warning() argument
63 ret = nla_put_u32(skb, QUOTA_NL_A_QTYPE, qid.type); in quota_send_warning()
67 from_kqid_munged(&init_user_ns, qid), in quota_send_warning()
Ddquot.c257 hashfn(const struct super_block *sb, struct kqid qid) in hashfn() argument
259 unsigned int id = from_kqid(&init_user_ns, qid); in hashfn()
260 int type = qid.type; in hashfn()
283 struct kqid qid) in find_dquot() argument
290 if (dquot->dq_sb == sb && qid_eq(dquot->dq_id, qid)) in find_dquot()
838 struct dquot *dqget(struct super_block *sb, struct kqid qid) in dqget() argument
840 unsigned int hashent = hashfn(sb, qid); in dqget()
843 if (!qid_has_mapping(sb->s_user_ns, qid)) in dqget()
846 if (!sb_has_quota_active(sb, qid.type)) in dqget()
851 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.c362 static int v2_get_next_id(struct super_block *sb, struct kqid *qid) in v2_get_next_id() argument
368 ret = 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.c188 struct kqid qid; in quota_refresh_user_store() local
199 qid = make_kqid(current_user_ns(), USRQUOTA, id); in quota_refresh_user_store()
200 if (!qid_valid(qid)) in quota_refresh_user_store()
203 error = gfs2_quota_refresh(sdp, qid); in quota_refresh_user_store()
210 struct kqid qid; in quota_refresh_group_store() local
221 qid = make_kqid(current_user_ns(), GRPQUOTA, id); in quota_refresh_group_store()
222 if (!qid_valid(qid)) in quota_refresh_group_store()
225 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.c876 static int ocfs2_get_next_id(struct super_block *sb, struct kqid *qid) in ocfs2_get_next_id() argument
878 int type = qid->type; in ocfs2_get_next_id()
882 trace_ocfs2_get_next_id(from_kqid(&init_user_ns, *qid), type); in ocfs2_get_next_id()
893 status = qtree_get_next_id(&info->dqi_gi, qid); in ocfs2_get_next_id()
/fs/ext4/
Dsuper.c1316 static int ext4_get_next_id(struct super_block *sb, struct kqid *qid);
5398 struct kqid qid; in ext4_statfs_project() local
5403 qid = make_kqid_projid(projid); in ext4_statfs_project()
5404 dquot = dqget(sb, qid); in ext4_statfs_project()
5882 static int ext4_get_next_id(struct super_block *sb, struct kqid *qid) in ext4_get_next_id() argument
5886 if (!sb_has_quota_loaded(sb, qid->type)) in ext4_get_next_id()
5888 ops = sb_dqopt(sb)->ops[qid->type]; in ext4_get_next_id()
5891 return dquot_get_next_id(sb, qid); in ext4_get_next_id()
/fs/f2fs/
Dsuper.c1174 struct kqid qid; in f2fs_statfs_project() local
1179 qid = make_kqid_projid(projid); in f2fs_statfs_project()
1180 dquot = dqget(sb, qid); in f2fs_statfs_project()