Home
last modified time | relevance | path

Searched refs:projid (Results 1 – 13 of 13) sorted by relevance

/linux-6.12.1/include/linux/
Dprojid.h26 static inline projid_t __kprojid_val(kprojid_t projid) in __kprojid_val() argument
28 return projid.val; in __kprojid_val()
46 static inline bool projid_valid(kprojid_t projid) in projid_valid() argument
48 return !projid_eq(projid, INVALID_PROJID); in projid_valid()
53 extern kprojid_t make_kprojid(struct user_namespace *from, projid_t projid);
55 extern projid_t from_kprojid(struct user_namespace *to, kprojid_t projid);
56 extern projid_t from_kprojid_munged(struct user_namespace *to, kprojid_t projid);
58 static inline bool kprojid_has_mapping(struct user_namespace *ns, kprojid_t projid) in kprojid_has_mapping() argument
60 return from_kprojid(ns, projid) != (projid_t)-1; in kprojid_has_mapping()
65 static inline kprojid_t make_kprojid(struct user_namespace *from, projid_t projid) in make_kprojid() argument
[all …]
Dquota.h72 kprojid_t projid; member
111 kqid.projid = make_kprojid(from, qid); in make_kqid()
138 kqid.projid = INVALID_PROJID; in make_kqid_invalid()
174 static inline struct kqid make_kqid_projid(kprojid_t projid) in make_kqid_projid() argument
178 kqid.projid = projid; in make_kqid_projid()
/linux-6.12.1/fs/quota/
Dkqid.c23 return projid_eq(left.projid, right.projid); in qid_eq()
49 return projid_lt(left.projid, right.projid); in qid_lt()
76 return from_kprojid(targ, kqid.projid); in from_kqid()
109 return from_kprojid_munged(targ, kqid.projid); in from_kqid_munged()
128 return projid_valid(qid.projid); in qid_valid()
Ddquot.c1471 kprojid_t projid; in __dquot_initialize() local
1498 rc = inode->i_sb->dq_op->get_projid(inode, &projid); in __dquot_initialize()
1501 qid = make_kqid_projid(projid); in __dquot_initialize()
/linux-6.12.1/fs/bcachefs/
Dfs.h159 u32 projid) in bch2_set_projid() argument
163 qid.q[QTYP_PRJ] = projid; in bch2_set_projid()
Dfs-ioctl.c28 unsigned projid; member
139 if (s->projid != bi->bi_project) { in fssetxattr_inode_update_fn()
141 bi->bi_project = s->projid; in fssetxattr_inode_update_fn()
174 s.projid = fa.fsx_projid + 1; in bch2_ioc_fssetxattr()
/linux-6.12.1/kernel/
Duser_namespace.c546 kprojid_t make_kprojid(struct user_namespace *ns, projid_t projid) in make_kprojid() argument
549 return KPROJIDT_INIT(map_id_down(&ns->projid_map, projid)); in make_kprojid()
592 projid_t projid; in from_kprojid_munged() local
593 projid = from_kprojid(targ, kprojid); in from_kprojid_munged()
595 if (projid == (projid_t) -1) in from_kprojid_munged()
596 projid = OVERFLOW_PROJID; in from_kprojid_munged()
597 return projid; in from_kprojid_munged()
/linux-6.12.1/fs/ext4/
Dioctl.c712 static int ext4_ioctl_setproject(struct inode *inode, __u32 projid) in ext4_ioctl_setproject() argument
724 if (projid != EXT4_DEF_PROJID) in ext4_ioctl_setproject()
733 kprojid = make_kprojid(&init_user_ns, (projid_t)projid); in ext4_ioctl_setproject()
798 static int ext4_ioctl_setproject(struct inode *inode, __u32 projid) in ext4_ioctl_setproject() argument
800 if (projid != EXT4_DEF_PROJID) in ext4_ioctl_setproject()
Dinode.c4655 int ext4_get_projid(struct inode *inode, kprojid_t *projid) in ext4_get_projid() argument
4659 *projid = EXT4_I(inode)->i_projid; in ext4_get_projid()
Dext4.h3034 extern int ext4_get_projid(struct inode *inode, kprojid_t *projid);
Dsuper.c6755 kprojid_t projid, struct kstatfs *buf) in ext4_statfs_project() argument
6762 qid = make_kqid_projid(projid); in ext4_statfs_project()
/linux-6.12.1/fs/f2fs/
Dfile.c3181 static int f2fs_ioc_setproject(struct inode *inode, __u32 projid) in f2fs_ioc_setproject() argument
3190 if (projid != F2FS_DEF_PROJID) in f2fs_ioc_setproject()
3199 kprojid = make_kprojid(&init_user_ns, (projid_t)projid); in f2fs_ioc_setproject()
3234 static int f2fs_ioc_setproject(struct inode *inode, __u32 projid) in f2fs_ioc_setproject() argument
3236 if (projid != F2FS_DEF_PROJID) in f2fs_ioc_setproject()
Dsuper.c1747 kprojid_t projid, struct kstatfs *buf) in f2fs_statfs_project() argument
1754 qid = make_kqid_projid(projid); in f2fs_statfs_project()
3106 static int f2fs_get_projid(struct inode *inode, kprojid_t *projid) in f2fs_get_projid() argument
3108 *projid = F2FS_I(inode)->i_projid; in f2fs_get_projid()