Home
last modified time | relevance | path

Searched refs:kqid (Results 1 – 17 of 17) sorted by relevance

/linux/include/linux/
H A Dquota.h68 struct kqid { /* Type in which we store the quota identifier */ struct
77 extern bool qid_eq(struct kqid left, struct kqid right); argument
78 extern bool qid_lt(struct kqid left, struct kqid right);
79 extern qid_t from_kqid(struct user_namespace *to, struct kqid qid);
80 extern qid_t from_kqid_munged(struct user_namespace *to, struct kqid qid);
81 extern bool qid_valid(struct kqid qid);
97 static inline struct kqid make_kqid(struct user_namespace *from, in make_kqid()
100 struct kqid kqid; in make_kqid() local
102 kqid.type = type; in make_kqid()
105 kqid.uid = make_kuid(from, qid); in make_kqid()
[all …]
H A Ddqblk_qtree.h19 struct kqid;
57 int qtree_get_next_id(struct qtree_mem_dqinfo *info, struct kqid *qid);
H A Dquotaops.h46 struct dquot *dqget(struct super_block *sb, struct kqid qid);
93 int dquot_get_next_id(struct super_block *sb, struct kqid *qid);
111 int dquot_get_dqblk(struct super_block *sb, struct kqid id,
113 int dquot_get_next_dqblk(struct super_block *sb, struct kqid *id,
115 int dquot_set_dqblk(struct super_block *sb, struct kqid id,
/linux/fs/quota/
H A Dkqid.c13 bool qid_eq(struct kqid left, struct kqid right) in qid_eq()
37 bool qid_lt(struct kqid left, struct kqid right) in qid_lt()
68 qid_t from_kqid(struct user_namespace *targ, struct kqid kqid) in from_kqid() argument
70 switch (kqid.type) { in from_kqid()
72 return from_kuid(targ, kqid.uid); in from_kqid()
74 return from_kgid(targ, kqid.gid); in from_kqid()
76 return from_kprojid(targ, kqid.projid); in from_kqid()
101 qid_t from_kqid_munged(struct user_namespace *targ, struct kqid kqid) in from_kqid_munged() argument
103 switch (kqid.type) { in from_kqid_munged()
105 return from_kuid_munged(targ, kqid.uid); in from_kqid_munged()
[all …]
H A DMakefile6 obj-$(CONFIG_QUOTACTL) += quota.o kqid.o
H A Dnetlink.c37 void quota_send_warning(struct kqid qid, dev_t dev, in quota_send_warning()
H A Dquota.c204 struct kqid qid; in quota_getquota()
240 struct kqid qid; in quota_getnextquota()
292 struct kqid qid; in quota_setquota()
629 struct kqid qid; in quota_setxquota()
710 struct kqid qid; in quota_getxquota()
736 struct kqid qid; in quota_getnextxquota()
H A Ddquot.c274 hashfn(const struct super_block *sb, struct kqid qid) in hashfn()
300 struct kqid qid) in find_dquot()
923 struct dquot *dqget(struct super_block *sb, struct kqid qid) in dqget()
1170 struct kqid w_dq_id;
1471 struct kqid qid; in __dquot_initialize()
2182 int dquot_get_next_id(struct super_block *sb, struct kqid *qid) in dquot_get_next_id()
2679 int dquot_get_dqblk(struct super_block *sb, struct kqid qid, in dquot_get_dqblk()
2694 int dquot_get_next_dqblk(struct super_block *sb, struct kqid *qid, in dquot_get_next_dqblk()
2814 int dquot_set_dqblk(struct super_block *sb, struct kqid qid, in dquot_set_dqblk()
H A Dquota_tree.c42 static int get_index(struct qtree_mem_dqinfo *info, struct kqid qid, int depth) in get_index()
842 int qtree_get_next_id(struct qtree_mem_dqinfo *info, struct kqid *qid) in qtree_get_next_id()
H A Dquota_v2.c404 static int v2_get_next_id(struct super_block *sb, struct kqid *qid) in v2_get_next_id()
/linux/fs/bcachefs/
H A Dquota.c775 static int bch2_get_quota(struct super_block *sb, struct kqid kqid, in bch2_get_quota() argument
779 struct bch_memquota_type *q = &c->quotas[kqid.type]; in bch2_get_quota()
780 qid_t qid = from_kqid(&init_user_ns, kqid); in bch2_get_quota()
794 static int bch2_get_next_quota(struct super_block *sb, struct kqid *kqid, in bch2_get_next_quota() argument
798 struct bch_memquota_type *q = &c->quotas[kqid->type]; in bch2_get_next_quota()
799 qid_t qid = from_kqid(&init_user_ns, *kqid); in bch2_get_next_quota()
809 *kqid = make_kqid(current_user_ns(), kqid->type, iter.pos); in bch2_get_next_quota()
851 static int bch2_set_quota(struct super_block *sb, struct kqid qid, in bch2_set_quota()
/linux/fs/xfs/
H A Dxfs_quotaops.c225 struct kqid qid, in xfs_fs_get_dqblk()
242 struct kqid *qid, in xfs_fs_get_nextdqblk()
266 struct kqid qid, in xfs_fs_set_dqblk()
/linux/fs/gfs2/
H A Dquota.h32 int gfs2_quota_refresh(struct gfs2_sbd *sdp, struct kqid qid);
H A Dsys.c261 struct kqid qid; in quota_refresh_user_store()
283 struct kqid qid; in quota_refresh_group_store()
/linux/mm/
H A Dshmem_quota.c114 static int shmem_get_next_id(struct super_block *sb, struct kqid *qid) in shmem_get_next_id()
/linux/fs/ocfs2/
H A Dquota_global.c889 static int ocfs2_get_next_id(struct super_block *sb, struct kqid *qid) in ocfs2_get_next_id()
/linux/fs/ext4/
H A Dsuper.c6816 struct kqid qid; in ext4_statfs_project()