summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_itable.c
diff options
context:
space:
mode:
authorChandra Seetharaman <sekharan@us.ibm.com>2013-06-27 17:25:04 -0500
committerBen Myers <bpm@sgi.com>2013-06-28 13:03:49 -0500
commit9cad19d2cb57a2c32887a303b516d74254aa4b1c (patch)
treeccd434b4d53ab75ea61158144e892184de0d321d /fs/xfs/xfs_itable.c
parentdc037ad7d24f3711e431a45c053b5d425995e9e4 (diff)
downloadlinux-stable-9cad19d2cb57a2c32887a303b516d74254aa4b1c.tar.gz
linux-stable-9cad19d2cb57a2c32887a303b516d74254aa4b1c.tar.bz2
linux-stable-9cad19d2cb57a2c32887a303b516d74254aa4b1c.zip
xfs: Define a new function xfs_is_quota_inode()
In preparation for combined pquota/gquota support, define a new function to check if the given inode is a quota inode. Signed-off-by: Chandra Seetharaman <sekharan@us.ibm.com> Reviewed-by: Ben Myers <bpm@sgi.com> Signed-off-by: Ben Myers <bpm@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_itable.c')
-rw-r--r--fs/xfs/xfs_itable.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_itable.c b/fs/xfs/xfs_itable.c
index 06d004d85bf4..bc92c5306a17 100644
--- a/fs/xfs/xfs_itable.c
+++ b/fs/xfs/xfs_itable.c
@@ -43,7 +43,7 @@ xfs_internal_inum(
{
return (ino == mp->m_sb.sb_rbmino || ino == mp->m_sb.sb_rsumino ||
(xfs_sb_version_hasquota(&mp->m_sb) &&
- (ino == mp->m_sb.sb_uquotino || ino == mp->m_sb.sb_gquotino)));
+ xfs_is_quota_inode(&mp->m_sb, ino)));
}
/*