summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_sb.h
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_sb.h
parentdc037ad7d24f3711e431a45c053b5d425995e9e4 (diff)
downloadop-kernel-dev-9cad19d2cb57a2c32887a303b516d74254aa4b1c.zip
op-kernel-dev-9cad19d2cb57a2c32887a303b516d74254aa4b1c.tar.gz
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_sb.h')
-rw-r--r--fs/xfs/xfs_sb.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/xfs/xfs_sb.h b/fs/xfs/xfs_sb.h
index 2de58a8..78f9e70 100644
--- a/fs/xfs/xfs_sb.h
+++ b/fs/xfs/xfs_sb.h
@@ -618,6 +618,12 @@ xfs_sb_has_incompat_log_feature(
return (sbp->sb_features_log_incompat & feature) != 0;
}
+static inline bool
+xfs_is_quota_inode(struct xfs_sb *sbp, xfs_ino_t ino)
+{
+ return (ino == sbp->sb_uquotino || ino == sbp->sb_gquotino);
+}
+
/*
* end of superblock version macros
*/
OpenPOWER on IntegriCloud