/kernel/linux/linux-6.6/fs/xfs/ |
H A D | xfs_quota.h | 90 struct xfs_dquot *udqp, struct xfs_dquot *gdqp, 120 prid_t prid, uint flags, struct xfs_dquot **udqp, in xfs_qm_vop_dqalloc() 123 *udqp = NULL; in xfs_qm_vop_dqalloc() 140 struct xfs_mount *mp, struct xfs_dquot *udqp, in xfs_trans_reserve_quota_bydquots() 154 xfs_trans_reserve_quota_icreate(struct xfs_trans *tp, struct xfs_dquot *udqp, in xfs_trans_reserve_quota_icreate() argument 119 xfs_qm_vop_dqalloc(struct xfs_inode *ip, kuid_t kuid, kgid_t kgid, prid_t prid, uint flags, struct xfs_dquot **udqp, struct xfs_dquot **gdqp, struct xfs_dquot **pdqp) xfs_qm_vop_dqalloc() argument 139 xfs_trans_reserve_quota_bydquots(struct xfs_trans *tp, struct xfs_mount *mp, struct xfs_dquot *udqp, struct xfs_dquot *gdqp, struct xfs_dquot *pdqp, int64_t nblks, long nions, uint flags) xfs_trans_reserve_quota_bydquots() argument
|
H A D | xfs_symlink.c | 170 struct xfs_dquot *udqp = NULL; in xfs_symlink() local 199 &udqp, &gdqp, &pdqp); in xfs_symlink() 213 error = xfs_trans_alloc_icreate(mp, &M_RES(mp)->tr_symlink, udqp, gdqp, in xfs_symlink() 253 xfs_qm_vop_create_dqattach(tp, ip, udqp, gdqp, pdqp); in xfs_symlink() 335 xfs_qm_dqrele(udqp); in xfs_symlink() 355 xfs_qm_dqrele(udqp); in xfs_symlink()
|
H A D | xfs_trans_dquot.c | 729 struct xfs_dquot *udqp, in xfs_trans_reserve_quota_bydquots() 743 if (udqp) { in xfs_trans_reserve_quota_bydquots() 744 error = xfs_trans_dqresv(tp, mp, udqp, nblks, ninos, flags); in xfs_trans_reserve_quota_bydquots() 772 if (udqp) in xfs_trans_reserve_quota_bydquots() 773 xfs_trans_dqresv(tp, mp, udqp, -nblks, -ninos, flags); in xfs_trans_reserve_quota_bydquots() 829 struct xfs_dquot *udqp, in xfs_trans_reserve_quota_icreate() 839 return xfs_trans_reserve_quota_bydquots(tp, mp, udqp, gdqp, pdqp, in xfs_trans_reserve_quota_icreate() 726 xfs_trans_reserve_quota_bydquots( struct xfs_trans *tp, struct xfs_mount *mp, struct xfs_dquot *udqp, struct xfs_dquot *gdqp, struct xfs_dquot *pdqp, int64_t nblks, long ninos, uint flags) xfs_trans_reserve_quota_bydquots() argument 827 xfs_trans_reserve_quota_icreate( struct xfs_trans *tp, struct xfs_dquot *udqp, struct xfs_dquot *gdqp, struct xfs_dquot *pdqp, int64_t dblocks) xfs_trans_reserve_quota_icreate() argument
|
H A D | xfs_trans.c | 1242 struct xfs_dquot *udqp, in xfs_trans_alloc_icreate() 1257 error = xfs_trans_reserve_quota_icreate(tp, udqp, gdqp, pdqp, dblocks); in xfs_trans_alloc_icreate() 1260 xfs_blockgc_free_dquots(mp, udqp, gdqp, pdqp, 0); in xfs_trans_alloc_icreate() 1293 struct xfs_dquot *udqp; in xfs_trans_alloc_ichange() local 1320 udqp = (new_udqp != ip->i_udquot) ? new_udqp : NULL; in xfs_trans_alloc_ichange() 1323 if (udqp || gdqp || pdqp) { in xfs_trans_alloc_ichange() 1335 error = xfs_trans_reserve_quota_bydquots(tp, mp, udqp, gdqp, in xfs_trans_alloc_ichange() 1340 xfs_blockgc_free_dquots(mp, udqp, gdqp, pdqp, 0); in xfs_trans_alloc_ichange() 1239 xfs_trans_alloc_icreate( struct xfs_mount *mp, struct xfs_trans_res *resv, struct xfs_dquot *udqp, struct xfs_dquot *gdqp, struct xfs_dquot *pdqp, unsigned int dblocks, struct xfs_trans **tpp) xfs_trans_alloc_icreate() argument
|
H A D | xfs_iops.c | 669 struct xfs_dquot *udqp = NULL, *gdqp = NULL; in xfs_setattr_nonsize() local 701 * We take a reference when we initialize udqp and gdqp, in xfs_setattr_nonsize() 705 ASSERT(udqp == NULL); in xfs_setattr_nonsize() 708 qflags, &udqp, &gdqp, NULL); in xfs_setattr_nonsize() 713 error = xfs_trans_alloc_ichange(ip, udqp, gdqp, NULL, in xfs_setattr_nonsize() 727 ASSERT(udqp); in xfs_setattr_nonsize() 728 old_udqp = xfs_qm_vop_chown(tp, ip, &ip->i_udquot, udqp); in xfs_setattr_nonsize() 751 xfs_qm_dqrele(udqp); in xfs_setattr_nonsize() 773 xfs_qm_dqrele(udqp); in xfs_setattr_nonsize()
|
H A D | xfs_icache.h | 60 int xfs_blockgc_free_dquots(struct xfs_mount *mp, struct xfs_dquot *udqp,
|
H A D | xfs_inode.c | 970 struct xfs_dquot *udqp = NULL; in xfs_create() local 990 &udqp, &gdqp, &pdqp); in xfs_create() 1008 error = xfs_trans_alloc_icreate(mp, tres, udqp, gdqp, pdqp, resblks, in xfs_create() 1013 error = xfs_trans_alloc_icreate(mp, tres, udqp, gdqp, pdqp, in xfs_create() 1074 xfs_qm_vop_create_dqattach(tp, ip, udqp, gdqp, pdqp); in xfs_create() 1080 xfs_qm_dqrele(udqp); in xfs_create() 1100 xfs_qm_dqrele(udqp); in xfs_create() 1121 struct xfs_dquot *udqp = NULL; in xfs_create_tmpfile() local 1139 &udqp, &gdqp, &pdqp); in xfs_create_tmpfile() 1146 error = xfs_trans_alloc_icreate(mp, tres, udqp, gdq in xfs_create_tmpfile() [all...] |
H A D | xfs_trans.h | 264 struct xfs_dquot *udqp, struct xfs_dquot *gdqp, 267 int xfs_trans_alloc_ichange(struct xfs_inode *ip, struct xfs_dquot *udqp,
|
H A D | xfs_qm.c | 1890 struct xfs_dquot *udqp, in xfs_qm_vop_create_dqattach() 1901 if (udqp && XFS_IS_UQUOTA_ON(mp)) { in xfs_qm_vop_create_dqattach() 1903 ASSERT(i_uid_read(VFS_I(ip)) == udqp->q_id); in xfs_qm_vop_create_dqattach() 1905 ip->i_udquot = xfs_qm_dqhold(udqp); in xfs_qm_vop_create_dqattach() 1906 xfs_trans_mod_dquot(tp, udqp, XFS_TRANS_DQ_ICOUNT, 1); in xfs_qm_vop_create_dqattach() 1887 xfs_qm_vop_create_dqattach( struct xfs_trans *tp, struct xfs_inode *ip, struct xfs_dquot *udqp, struct xfs_dquot *gdqp, struct xfs_dquot *pdqp) xfs_qm_vop_create_dqattach() argument
|
H A D | xfs_icache.c | 1521 struct xfs_dquot *udqp, in xfs_blockgc_free_dquots() 1529 if (!udqp && !gdqp && !pdqp) in xfs_blockgc_free_dquots() 1538 if (XFS_IS_UQUOTA_ENFORCED(mp) && udqp && xfs_dquot_lowsp(udqp)) { in xfs_blockgc_free_dquots() 1539 icw.icw_uid = make_kuid(mp->m_super->s_user_ns, udqp->q_id); in xfs_blockgc_free_dquots() 1519 xfs_blockgc_free_dquots( struct xfs_mount *mp, struct xfs_dquot *udqp, struct xfs_dquot *gdqp, struct xfs_dquot *pdqp, unsigned int iwalk_flags) xfs_blockgc_free_dquots() argument
|
/kernel/linux/linux-5.10/fs/xfs/ |
H A D | xfs_quota.h | 114 prid_t prid, uint flags, struct xfs_dquot **udqp, in xfs_qm_vop_dqalloc() 117 *udqp = NULL; in xfs_qm_vop_dqalloc() 133 struct xfs_mount *mp, struct xfs_dquot *udqp, in xfs_trans_reserve_quota_bydquots() 113 xfs_qm_vop_dqalloc(struct xfs_inode *ip, kuid_t kuid, kgid_t kgid, prid_t prid, uint flags, struct xfs_dquot **udqp, struct xfs_dquot **gdqp, struct xfs_dquot **pdqp) xfs_qm_vop_dqalloc() argument 132 xfs_trans_reserve_quota_bydquots(struct xfs_trans *tp, struct xfs_mount *mp, struct xfs_dquot *udqp, struct xfs_dquot *gdqp, struct xfs_dquot *pdqp, int64_t nblks, long nions, uint flags) xfs_trans_reserve_quota_bydquots() argument
|
H A D | xfs_symlink.c | 159 struct xfs_dquot *udqp = NULL; in xfs_symlink() local 186 &udqp, &gdqp, &pdqp); in xfs_symlink() 218 error = xfs_trans_reserve_quota(tp, mp, udqp, gdqp, in xfs_symlink() 244 xfs_qm_vop_create_dqattach(tp, ip, udqp, gdqp, pdqp); in xfs_symlink() 327 xfs_qm_dqrele(udqp); in xfs_symlink() 347 xfs_qm_dqrele(udqp); in xfs_symlink()
|
H A D | xfs_trans_dquot.c | 749 struct xfs_dquot *udqp, in xfs_trans_reserve_quota_bydquots() 766 if (udqp) { in xfs_trans_reserve_quota_bydquots() 767 error = xfs_trans_dqresv(tp, mp, udqp, nblks, ninos, flags); in xfs_trans_reserve_quota_bydquots() 795 if (udqp) in xfs_trans_reserve_quota_bydquots() 796 xfs_trans_dqresv(tp, mp, udqp, -nblks, -ninos, flags); in xfs_trans_reserve_quota_bydquots() 746 xfs_trans_reserve_quota_bydquots( struct xfs_trans *tp, struct xfs_mount *mp, struct xfs_dquot *udqp, struct xfs_dquot *gdqp, struct xfs_dquot *pdqp, int64_t nblks, long ninos, uint flags) xfs_trans_reserve_quota_bydquots() argument
|
H A D | xfs_iops.c | 633 struct xfs_dquot *udqp = NULL, *gdqp = NULL; in xfs_setattr_nonsize() local 663 * We take a reference when we initialize udqp and gdqp, in xfs_setattr_nonsize() 667 ASSERT(udqp == NULL); in xfs_setattr_nonsize() 670 qflags, &udqp, &gdqp, NULL); in xfs_setattr_nonsize() 705 error = xfs_qm_vop_chown_reserve(tp, ip, udqp, gdqp, in xfs_setattr_nonsize() 719 ASSERT(udqp); in xfs_setattr_nonsize() 721 &ip->i_udquot, udqp); in xfs_setattr_nonsize() 752 xfs_qm_dqrele(udqp); in xfs_setattr_nonsize() 777 xfs_qm_dqrele(udqp); in xfs_setattr_nonsize()
|
H A D | xfs_inode.c | 1124 struct xfs_dquot *udqp = NULL; in xfs_create() local 1142 &udqp, &gdqp, &pdqp); in xfs_create() 1175 error = xfs_trans_reserve_quota(tp, mp, udqp, gdqp, in xfs_create() 1229 xfs_qm_vop_create_dqattach(tp, ip, udqp, gdqp, pdqp); in xfs_create() 1235 xfs_qm_dqrele(udqp); in xfs_create() 1255 xfs_qm_dqrele(udqp); in xfs_create() 1275 struct xfs_dquot *udqp = NULL; in xfs_create_tmpfile() local 1291 &udqp, &gdqp, &pdqp); in xfs_create_tmpfile() 1302 error = xfs_trans_reserve_quota(tp, mp, udqp, gdqp, in xfs_create_tmpfile() 1319 xfs_qm_vop_create_dqattach(tp, ip, udqp, gdq in xfs_create_tmpfile() [all...] |
H A D | xfs_qm.c | 1834 struct xfs_dquot *udqp, in xfs_qm_vop_chown_reserve() 1851 if (XFS_IS_UQUOTA_ON(mp) && udqp && in xfs_qm_vop_chown_reserve() 1852 i_uid_read(VFS_I(ip)) != udqp->q_id) in xfs_qm_vop_chown_reserve() 1853 udq_delblks = udqp; in xfs_qm_vop_chown_reserve() 1907 struct xfs_dquot *udqp, in xfs_qm_vop_create_dqattach() 1918 if (udqp && XFS_IS_UQUOTA_ON(mp)) { in xfs_qm_vop_create_dqattach() 1920 ASSERT(i_uid_read(VFS_I(ip)) == udqp->q_id); in xfs_qm_vop_create_dqattach() 1922 ip->i_udquot = xfs_qm_dqhold(udqp); in xfs_qm_vop_create_dqattach() 1923 xfs_trans_mod_dquot(tp, udqp, XFS_TRANS_DQ_ICOUNT, 1); in xfs_qm_vop_create_dqattach() 1831 xfs_qm_vop_chown_reserve( struct xfs_trans *tp, struct xfs_inode *ip, struct xfs_dquot *udqp, struct xfs_dquot *gdqp, struct xfs_dquot *pdqp, uint flags) xfs_qm_vop_chown_reserve() argument 1904 xfs_qm_vop_create_dqattach( struct xfs_trans *tp, struct xfs_inode *ip, struct xfs_dquot *udqp, struct xfs_dquot *gdqp, struct xfs_dquot *pdqp) xfs_qm_vop_create_dqattach() argument
|