/linux-6.6.21/fs/quota/ |
D | quota_v2.c | 245 sb_dqinfo(dquot->dq_sb, dquot->dq_id.type)->dqi_priv; in v2r0_mem2diskdqb() 255 d->dqb_id = cpu_to_le32(from_kqid(&init_user_ns, dquot->dq_id)); in v2r0_mem2diskdqb() 264 sb_dqinfo(dquot->dq_sb, dquot->dq_id.type)->dqi_priv; in v2r0_is_id() 268 return qid_eq(make_kqid(&init_user_ns, dquot->dq_id.type, in v2r0_is_id() 270 dquot->dq_id); in v2r0_is_id() 298 sb_dqinfo(dquot->dq_sb, dquot->dq_id.type)->dqi_priv; in v2r1_mem2diskdqb() 308 d->dqb_id = cpu_to_le32(from_kqid(&init_user_ns, dquot->dq_id)); in v2r1_mem2diskdqb() 318 sb_dqinfo(dquot->dq_sb, dquot->dq_id.type)->dqi_priv; in v2r1_is_id() 322 return qid_eq(make_kqid(&init_user_ns, dquot->dq_id.type, in v2r1_is_id() 324 dquot->dq_id); in v2r1_is_id() [all …]
|
D | quota_v1.c | 58 int type = dquot->dq_id.type; in v1_read_dqblk() 69 v1_dqoff(from_kqid(&init_user_ns, dquot->dq_id))); in v1_read_dqblk() 84 short type = dquot->dq_id.type; in v1_commit_dqblk() 89 if (((type == USRQUOTA) && uid_eq(dquot->dq_id.uid, GLOBAL_ROOT_UID)) || in v1_commit_dqblk() 90 ((type == GRPQUOTA) && gid_eq(dquot->dq_id.gid, GLOBAL_ROOT_GID))) { in v1_commit_dqblk() 100 v1_dqoff(from_kqid(&init_user_ns, dquot->dq_id))); in v1_commit_dqblk()
|
D | quota_tree.c | 286 mark_info_dirty(dquot->dq_sb, dquot->dq_id.type); in find_free_dqentry() 355 newblk = le32_to_cpu(ref[get_index(info, dquot->dq_id, depth)]); in do_insert_tree() 368 dquot->dq_id, depth)])); in do_insert_tree() 378 ref[get_index(info, dquot->dq_id, depth)] = in do_insert_tree() 410 int type = dquot->dq_id.type; in qtree_write_dquot() 529 newblk = le32_to_cpu(ref[get_index(info, dquot->dq_id, depth)]); in remove_tree() 543 ref[get_index(info, dquot->dq_id, depth)] = cpu_to_le32(0); in remove_tree() 602 from_kqid(&init_user_ns, dquot->dq_id)); in find_block_dqentry() 631 blk = le32_to_cpu(ref[get_index(info, dquot->dq_id, depth)]); in find_tree_dqentry() 657 int type = dquot->dq_id.type; in qtree_read_dquot() [all …]
|
D | dquot.c | 292 head = dquot_hash + hashfn(dquot->dq_sb, dquot->dq_id); in insert_dquot_hash() 307 if (dquot->dq_sb == sb && qid_eq(dquot->dq_id, qid)) in find_dquot() 393 info[dquot->dq_id.type].dqi_dirty_list); in dquot_mark_dquot_dirty() 461 ret = dqopt->ops[dquot->dq_id.type]->read_dqblk(dquot); in dquot_acquire() 470 ret = dqopt->ops[dquot->dq_id.type]->commit_dqblk(dquot); in dquot_acquire() 472 if (info_dirty(&dqopt->info[dquot->dq_id.type])) { in dquot_acquire() 473 ret2 = dqopt->ops[dquot->dq_id.type]->write_file_info( in dquot_acquire() 474 dquot->dq_sb, dquot->dq_id.type); in dquot_acquire() 512 ret = dqopt->ops[dquot->dq_id.type]->commit_dqblk(dquot); in dquot_commit() 536 if (dqopt->ops[dquot->dq_id.type]->release_dqblk) { in dquot_release() [all …]
|
/linux-6.6.21/mm/ |
D | shmem_quota.c | 167 struct mem_dqinfo *info = sb_dqinfo(dquot->dq_sb, dquot->dq_id.type); in shmem_acquire_dquot() 172 qid_t id = from_kqid(&init_user_ns, dquot->dq_id); in shmem_acquire_dquot() 199 if (dquot->dq_id.type == USRQUOTA) { in shmem_acquire_dquot() 202 } else if (dquot->dq_id.type == GRPQUOTA) { in shmem_acquire_dquot() 242 if (dquot->dq_id.type == USRQUOTA) { in shmem_is_empty_dquot() 245 } else if (dquot->dq_id.type == GRPQUOTA) { in shmem_is_empty_dquot() 266 struct mem_dqinfo *info = sb_dqinfo(dquot->dq_sb, dquot->dq_id.type); in shmem_release_dquot() 268 qid_t id = from_kqid(&init_user_ns, dquot->dq_id); in shmem_release_dquot()
|
/linux-6.6.21/fs/ocfs2/ |
D | quota_global.c | 101 d->dqb_id = cpu_to_le32(from_kqid(&init_user_ns, dquot->dq_id)); in ocfs2_global_mem2diskdqb() 118 sb_dqinfo(dquot->dq_sb, dquot->dq_id.type)->dqi_priv; in ocfs2_global_is_id() 123 return qid_eq(make_kqid(&init_user_ns, dquot->dq_id.type, in ocfs2_global_is_id() 125 dquot->dq_id); in ocfs2_global_is_id() 488 int type = dquot->dq_id.type; in __ocfs2_sync_dquot() 517 trace_ocfs2_sync_dquot(from_kqid(&init_user_ns, dquot->dq_id), in __ocfs2_sync_dquot() 569 " (type=%d, id=%u)\n", dquot->dq_id.type, in __ocfs2_sync_dquot() 570 (unsigned)from_kqid(&init_user_ns, dquot->dq_id)); in __ocfs2_sync_dquot() 605 trace_ocfs2_sync_dquot_helper(from_kqid(&init_user_ns, dquot->dq_id), in ocfs2_sync_dquot_helper() 606 dquot->dq_id.type, in ocfs2_sync_dquot_helper() [all …]
|
D | ocfs2_trace.h | 1986 TP_PROTO(unsigned int dq_id, long long dqb_curspace, 1989 TP_ARGS(dq_id, dqb_curspace, spacechange, curinodes, inodechange), 1991 __field(unsigned int, dq_id) 1998 __entry->dq_id = dq_id; 2004 TP_printk("%u %lld %lld %lld %lld", __entry->dq_id, 2010 TP_PROTO(unsigned int dq_id, unsigned int dq_type, unsigned long type, 2012 TP_ARGS(dq_id, dq_type, type, s_id), 2015 __field(unsigned int, dq_id) 2021 __entry->dq_id = dq_id; 2026 TP_printk("%u %u %lu %s", __entry->dq_id, __entry->dq_type,
|
D | quota_local.c | 876 od->dq_dquot.dq_id)); in olq_set_dquot() 886 from_kqid(&init_user_ns, od->dq_dquot.dq_id)); in olq_set_dquot() 895 struct inode *lqinode = sb_dqopt(sb)->files[dquot->dq_id.type]; in ocfs2_local_write_dquot() 1216 int type = dquot->dq_id.type; in ocfs2_create_local_dquot() 1270 int type = dquot->dq_id.type; in ocfs2_local_release_dquot()
|
/linux-6.6.21/include/linux/ |
D | quota.h | 305 struct kqid dq_id; /* ID this applies to (uid, gid, projid) */ member
|
/linux-6.6.21/fs/ext4/ |
D | super.c | 6853 return sb_dqopt(dquot->dq_sb)->files[dquot->dq_id.type]; in dquot_to_inode()
|