xfs
[Top] [All Lists]

Definition of XFS_DQUOT_LOGRES()

To: XFS Mailing List <xfs@xxxxxxxxxxx>
Subject: Definition of XFS_DQUOT_LOGRES()
From: Michael Nishimoto <miken@xxxxxxxxx>
Date: Mon, 31 Mar 2008 15:45:28 -0700
Sender: xfs-bounce@xxxxxxxxxxx
User-agent: Mail/News 1.5.0.4 (X11/20060629)
The comment for XFS_DQUOT_LOGRES states that we need to reserve space
for 3 dquots.  I can't figure out why we need to add this amount to *all*
operations and why this amount wasn't added after doing a runtime
quotaon check.

Comments?

    Michael

/*
 * In the worst case, when both user and group quotas are on,
 * we can have a max of three dquots changing in a single transaction.
 */
#define XFS_DQUOT_LOGRES(mp)    (sizeof(xfs_disk_dquot_t) * 3)


<Prev in Thread] Current Thread [Next in Thread>