xfs: remove the xfs_disk_dquot_t and xfs_dquot_t
Signed-off-by: Pavel Reichl <preichl@redhat.com> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> [darrick: fix some of the comments] Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
This commit is contained in:

committed by
Darrick J. Wong

parent
e8777b27ca
commit
aefe69a45d
@@ -35,10 +35,10 @@ xfs_calc_dquots_per_chunk(
|
||||
|
||||
xfs_failaddr_t
|
||||
xfs_dquot_verify(
|
||||
struct xfs_mount *mp,
|
||||
xfs_disk_dquot_t *ddq,
|
||||
xfs_dqid_t id,
|
||||
uint type) /* used only during quotacheck */
|
||||
struct xfs_mount *mp,
|
||||
struct xfs_disk_dquot *ddq,
|
||||
xfs_dqid_t id,
|
||||
uint type) /* used only during quotacheck */
|
||||
{
|
||||
/*
|
||||
* We can encounter an uninitialized dquot buffer for 2 reasons:
|
||||
|
@@ -1144,11 +1144,11 @@ static inline void xfs_dinode_put_rdev(struct xfs_dinode *dip, xfs_dev_t rdev)
|
||||
|
||||
/*
|
||||
* This is the main portion of the on-disk representation of quota
|
||||
* information for a user. This is the q_core of the xfs_dquot_t that
|
||||
* information for a user. This is the q_core of the struct xfs_dquot that
|
||||
* is kept in kernel memory. We pad this with some more expansion room
|
||||
* to construct the on disk structure.
|
||||
*/
|
||||
typedef struct xfs_disk_dquot {
|
||||
struct xfs_disk_dquot {
|
||||
__be16 d_magic; /* dquot magic = XFS_DQUOT_MAGIC */
|
||||
__u8 d_version; /* dquot version */
|
||||
__u8 d_flags; /* XFS_DQ_USER/PROJ/GROUP */
|
||||
@@ -1171,15 +1171,15 @@ typedef struct xfs_disk_dquot {
|
||||
__be32 d_rtbtimer; /* similar to above; for RT disk blocks */
|
||||
__be16 d_rtbwarns; /* warnings issued wrt RT disk blocks */
|
||||
__be16 d_pad;
|
||||
} xfs_disk_dquot_t;
|
||||
};
|
||||
|
||||
/*
|
||||
* This is what goes on disk. This is separated from the xfs_disk_dquot because
|
||||
* carrying the unnecessary padding would be a waste of memory.
|
||||
*/
|
||||
typedef struct xfs_dqblk {
|
||||
xfs_disk_dquot_t dd_diskdq; /* portion that lives incore as well */
|
||||
char dd_fill[4]; /* filling for posterity */
|
||||
struct xfs_disk_dquot dd_diskdq; /* portion living incore as well */
|
||||
char dd_fill[4];/* filling for posterity */
|
||||
|
||||
/*
|
||||
* These two are only present on filesystems with the CRC bits set.
|
||||
|
@@ -718,7 +718,7 @@ xfs_calc_clear_agi_bucket_reservation(
|
||||
|
||||
/*
|
||||
* Adjusting quota limits.
|
||||
* the xfs_disk_dquot_t: sizeof(struct xfs_disk_dquot)
|
||||
* the disk quota buffer: sizeof(struct xfs_disk_dquot)
|
||||
*/
|
||||
STATIC uint
|
||||
xfs_calc_qm_setqlim_reservation(void)
|
||||
|
Reference in New Issue
Block a user