aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/linux/quotaops.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/linux/quotaops.h b/include/linux/quotaops.h
index adcc7ba3accb..ffd97071cd1e 100644
--- a/include/linux/quotaops.h
+++ b/include/linux/quotaops.h
@@ -67,8 +67,10 @@ static inline struct mem_dqinfo *sb_dqinfo(struct super_block *sb, int type)
67static inline int sb_has_quota_enabled(struct super_block *sb, int type) 67static inline int sb_has_quota_enabled(struct super_block *sb, int type)
68{ 68{
69 if (type == USRQUOTA) 69 if (type == USRQUOTA)
70 return sb_dqopt(sb)->flags & DQUOT_USR_ENABLED; 70 return (sb_dqopt(sb)->flags & DQUOT_USR_ENABLED)
71 return sb_dqopt(sb)->flags & DQUOT_GRP_ENABLED; 71 && !(sb_dqopt(sb)->flags & DQUOT_USR_SUSPENDED);
72 return (sb_dqopt(sb)->flags & DQUOT_GRP_ENABLED)
73 && !(sb_dqopt(sb)->flags & DQUOT_GROUP_SUSPENDED);
72} 74}
73 75
74static inline int sb_any_quota_enabled(struct super_block *sb) 76static inline int sb_any_quota_enabled(struct super_block *sb)