Skip to content

Commit

Permalink
quota: add a convenience macro for filesystems
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jan Kara authored and Linus Torvalds committed May 1, 2008
1 parent 0d34aa4 commit c32e026
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/linux/quota.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit c32e026

Please sign in to comment.