提交 c32e026e 编写于 作者: J Jan Kara 提交者: Linus Torvalds

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: NJan Kara <jack@suse.cz>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 0d34aa4d
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册