summaryrefslogtreecommitdiffstats
path: root/include/linux/quota.h
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2008-05-01 04:35:05 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2008-05-01 08:04:01 -0700
commitc32e026efc1e1a4f9e36babebf123f2b88205b0b (patch)
tree4ac178e87d8ab8b21c157f63a6452fa3f978a20a /include/linux/quota.h
parent0d34aa4d5a3e5d141bb4d07ed5d4bf02d4d4998a (diff)
downloadlinux-c32e026efc1e1a4f9e36babebf123f2b88205b0b.tar.gz
linux-c32e026efc1e1a4f9e36babebf123f2b88205b0b.tar.bz2
linux-c32e026efc1e1a4f9e36babebf123f2b88205b0b.zip
quota: add a convenience macro for filesystems
Note that it cannot be an inline function because we don't have struct super_block prototype... Signed-off-by: Jan Kara <jack@suse.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/quota.h')
-rw-r--r--include/linux/quota.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/quota.h b/include/linux/quota.h
index 52e49dce6584..dcddfb200947 100644
--- a/include/linux/quota.h
+++ b/include/linux/quota.h
@@ -347,6 +347,9 @@ struct quota_info {
((type) == USRQUOTA ? (sb_dqopt(sb)->flags & DQUOT_USR_SUSPENDED) : \
(sb_dqopt(sb)->flags & DQUOT_GRP_SUSPENDED))
+#define sb_any_quota_suspended(sb) (sb_has_quota_suspended(sb, USRQUOTA) | \
+ sb_has_quota_suspended(sb, GRPQUOTA))
+
int register_quota_format(struct quota_format_type *fmt);
void unregister_quota_format(struct quota_format_type *fmt);