Source kernel commit:
415b06be5965b9dd36b6a9287962dbc38b7f4c3a
All remaining uses of xfs_is_noquota_inode are used to check if quota
accounting should not be applied to an inode, and unless used in asserts
is always combined with a metadir check as we never apply quotas to
metadir inodes.
Combine these checks into a single xfs_noquota_inode that explains the
logic. Note that for dqadjust this now means we have to read the
inode first before skipping them, but that's a small price to pay for
more obvious code.
Signed-off-by: Christoph Hellwig <hch@lst.de>
XFS_SB_FEAT_INCOMPAT_LOG_XATTRS);
}
-static inline bool
-xfs_is_quota_inode(struct xfs_sb *sbp, xfs_ino_t ino)
-{
- return (ino == sbp->sb_uquotino ||
- ino == sbp->sb_gquotino ||
- ino == sbp->sb_pquotino);
-}
-
#define XFS_SB_DADDR ((xfs_daddr_t)0) /* daddr in filesystem/ag */
#define XFS_SB_BLOCK(mp) XFS_HDR_BLOCK(mp, XFS_SB_DADDR)