lkml.org 
[lkml]   [2008]   [Apr]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH] quota: Add a convenience macro for filesystems
    Date
    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>
    ---
    include/linux/quota.h | 3 +++
    1 files changed, 3 insertions(+), 0 deletions(-)

    diff --git a/include/linux/quota.h b/include/linux/quota.h
    index 52e49dc..dcddfb2 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);

    --
    1.5.2.4


    \
     
     \ /
      Last update: 2008-04-30 17:11    [W:8.813 / U:0.156 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site