diff options
author | Chandra Seetharaman <sekharan@us.ibm.com> | 2012-01-23 17:31:25 +0000 |
---|---|---|
committer | Ben Myers <bpm@sgi.com> | 2012-02-03 09:42:53 -0600 |
commit | 6967b964c1012231f338445f20f877e680cd4cb8 (patch) | |
tree | bbf07cd6220f957eed9dead914f8603548c21fbb /fs/xfs/xfs_dquot.c | |
parent | b9957308452afcf58e656db834f44df10d7b1662 (diff) | |
download | blackbird-op-linux-6967b964c1012231f338445f20f877e680cd4cb8.tar.gz blackbird-op-linux-6967b964c1012231f338445f20f877e680cd4cb8.zip |
Define a new function xfs_this_quota_on()
Create a new function xfs_this_quota_on() that takes a xfs_mount
data structure and a disk quota type and returns true if the specified
type of quota is ON in the xfs_mount data structure.
Signed-off-by: Chandra Seetharaman <sekharan@us.ibm.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Ben Myers <bpm@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_dquot.c')
-rw-r--r-- | fs/xfs/xfs_dquot.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/xfs_dquot.c b/fs/xfs/xfs_dquot.c index b4ff40b5f918..4c8b3d2cc961 100644 --- a/fs/xfs/xfs_dquot.c +++ b/fs/xfs/xfs_dquot.c @@ -358,7 +358,7 @@ xfs_qm_dqalloc( * Return if this type of quotas is turned off while we didn't * have an inode lock */ - if (XFS_IS_THIS_QUOTA_OFF(dqp)) { + if (!xfs_this_quota_on(dqp->q_mount, dqp->dq_flags)) { xfs_iunlock(quotip, XFS_ILOCK_EXCL); return (ESRCH); } @@ -460,7 +460,7 @@ xfs_qm_dqtobp( dqp->q_fileoffset = (xfs_fileoff_t)id / mp->m_quotainfo->qi_dqperchunk; xfs_ilock(quotip, XFS_ILOCK_SHARED); - if (XFS_IS_THIS_QUOTA_OFF(dqp)) { + if (!xfs_this_quota_on(dqp->q_mount, dqp->dq_flags)) { /* * Return if this type of quotas is turned off while we * didn't have the quota inode lock. |