diff options
author | Christoph Hellwig <hch@lst.de> | 2010-06-04 04:56:29 -0400 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2010-07-21 10:01:47 -0400 |
commit | 189eef59e70e3e56edf726864629f310d114eefb (patch) | |
tree | eff40faa6d8f4b103f10709892c1b47c8be6ae4e /include/linux/quotaops.h | |
parent | ade7ce31c22e961dfbe1a6d57fd362c90c187cbd (diff) |
quota: clean up quota active checks
The various quota operations check for any quota beeing active on
a superblock, and the inode not having the noquota flag.
Merge these two checks into a dquot_active check and move that
into dquot.c as that's the only place where it's needed.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'include/linux/quotaops.h')
-rw-r--r-- | include/linux/quotaops.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/include/linux/quotaops.h b/include/linux/quotaops.h index aa36793b48bd..126193c1a5ce 100644 --- a/include/linux/quotaops.h +++ b/include/linux/quotaops.h | |||
@@ -145,11 +145,6 @@ static inline bool sb_has_quota_active(struct super_block *sb, int type) | |||
145 | !sb_has_quota_suspended(sb, type); | 145 | !sb_has_quota_suspended(sb, type); |
146 | } | 146 | } |
147 | 147 | ||
148 | static inline unsigned sb_any_quota_active(struct super_block *sb) | ||
149 | { | ||
150 | return sb_any_quota_loaded(sb) & ~sb_any_quota_suspended(sb); | ||
151 | } | ||
152 | |||
153 | /* | 148 | /* |
154 | * Operations supported for diskquotas. | 149 | * Operations supported for diskquotas. |
155 | */ | 150 | */ |
@@ -194,11 +189,6 @@ static inline int sb_has_quota_active(struct super_block *sb, int type) | |||
194 | return 0; | 189 | return 0; |
195 | } | 190 | } |
196 | 191 | ||
197 | static inline int sb_any_quota_active(struct super_block *sb) | ||
198 | { | ||
199 | return 0; | ||
200 | } | ||
201 | |||
202 | static inline void dquot_initialize(struct inode *inode) | 192 | static inline void dquot_initialize(struct inode *inode) |
203 | { | 193 | { |
204 | } | 194 | } |