projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d34aa4
)
quota: add a convenience macro for filesystems
author
Jan Kara
<
[email protected]
>
Thu, 1 May 2008 11:35:05 +0000
(
04:35
-0700)
committer
Linus Torvalds
<
[email protected]
>
Thu, 1 May 2008 15:04:01 +0000
(08:04 -0700)
Note that it cannot be an inline function because we don't have struct
super_block prototype...
Signed-off-by: Jan Kara <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
include/linux/quota.h
patch
|
blob
|
history
diff --git
a/include/linux/quota.h
b/include/linux/quota.h
index 52e49dce658402fc652c082ff1e6979ff6ead7e2..dcddfb2009479f42a543363d0c0873c76d4bfcee 100644
(file)
--- 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);