diff options
Diffstat (limited to 'include/linux/quotaops.h')
| -rw-r--r-- | include/linux/quotaops.h | 26 |
1 files changed, 11 insertions, 15 deletions
diff --git a/include/linux/quotaops.h b/include/linux/quotaops.h index aa36793b48bd..d50ba858cfe0 100644 --- a/include/linux/quotaops.h +++ b/include/linux/quotaops.h | |||
| @@ -28,6 +28,12 @@ static inline bool is_quota_modification(struct inode *inode, struct iattr *ia) | |||
| 28 | 28 | ||
| 29 | #if defined(CONFIG_QUOTA) | 29 | #if defined(CONFIG_QUOTA) |
| 30 | 30 | ||
| 31 | #define quota_error(sb, fmt, args...) \ | ||
| 32 | __quota_error((sb), __func__, fmt , ## args) | ||
| 33 | |||
| 34 | extern void __quota_error(struct super_block *sb, const char *func, | ||
| 35 | const char *fmt, ...); | ||
| 36 | |||
| 31 | /* | 37 | /* |
| 32 | * declaration of quota_function calls in kernel. | 38 | * declaration of quota_function calls in kernel. |
| 33 | */ | 39 | */ |
| @@ -145,11 +151,6 @@ static inline bool sb_has_quota_active(struct super_block *sb, int type) | |||
| 145 | !sb_has_quota_suspended(sb, type); | 151 | !sb_has_quota_suspended(sb, type); |
| 146 | } | 152 | } |
| 147 | 153 | ||
| 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 | /* | 154 | /* |
| 154 | * Operations supported for diskquotas. | 155 | * Operations supported for diskquotas. |
| 155 | */ | 156 | */ |
| @@ -194,11 +195,6 @@ static inline int sb_has_quota_active(struct super_block *sb, int type) | |||
| 194 | return 0; | 195 | return 0; |
| 195 | } | 196 | } |
| 196 | 197 | ||
| 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) | 198 | static inline void dquot_initialize(struct inode *inode) |
| 203 | { | 199 | { |
| 204 | } | 200 | } |
| @@ -270,7 +266,7 @@ static inline int dquot_alloc_space_nodirty(struct inode *inode, qsize_t nr) | |||
| 270 | static inline void dquot_alloc_space_nofail(struct inode *inode, qsize_t nr) | 266 | static inline void dquot_alloc_space_nofail(struct inode *inode, qsize_t nr) |
| 271 | { | 267 | { |
| 272 | __dquot_alloc_space(inode, nr, DQUOT_SPACE_WARN|DQUOT_SPACE_NOFAIL); | 268 | __dquot_alloc_space(inode, nr, DQUOT_SPACE_WARN|DQUOT_SPACE_NOFAIL); |
| 273 | mark_inode_dirty(inode); | 269 | mark_inode_dirty_sync(inode); |
| 274 | } | 270 | } |
| 275 | 271 | ||
| 276 | static inline int dquot_alloc_space(struct inode *inode, qsize_t nr) | 272 | static inline int dquot_alloc_space(struct inode *inode, qsize_t nr) |
| @@ -279,7 +275,7 @@ static inline int dquot_alloc_space(struct inode *inode, qsize_t nr) | |||
| 279 | 275 | ||
| 280 | ret = dquot_alloc_space_nodirty(inode, nr); | 276 | ret = dquot_alloc_space_nodirty(inode, nr); |
| 281 | if (!ret) | 277 | if (!ret) |
| 282 | mark_inode_dirty(inode); | 278 | mark_inode_dirty_sync(inode); |
| 283 | return ret; | 279 | return ret; |
| 284 | } | 280 | } |
| 285 | 281 | ||
| @@ -309,7 +305,7 @@ static inline int dquot_prealloc_block(struct inode *inode, qsize_t nr) | |||
| 309 | 305 | ||
| 310 | ret = dquot_prealloc_block_nodirty(inode, nr); | 306 | ret = dquot_prealloc_block_nodirty(inode, nr); |
| 311 | if (!ret) | 307 | if (!ret) |
| 312 | mark_inode_dirty(inode); | 308 | mark_inode_dirty_sync(inode); |
| 313 | return ret; | 309 | return ret; |
| 314 | } | 310 | } |
| 315 | 311 | ||
| @@ -325,7 +321,7 @@ static inline int dquot_claim_block(struct inode *inode, qsize_t nr) | |||
| 325 | 321 | ||
| 326 | ret = dquot_claim_space_nodirty(inode, nr << inode->i_blkbits); | 322 | ret = dquot_claim_space_nodirty(inode, nr << inode->i_blkbits); |
| 327 | if (!ret) | 323 | if (!ret) |
| 328 | mark_inode_dirty(inode); | 324 | mark_inode_dirty_sync(inode); |
| 329 | return ret; | 325 | return ret; |
| 330 | } | 326 | } |
| 331 | 327 | ||
| @@ -337,7 +333,7 @@ static inline void dquot_free_space_nodirty(struct inode *inode, qsize_t nr) | |||
| 337 | static inline void dquot_free_space(struct inode *inode, qsize_t nr) | 333 | static inline void dquot_free_space(struct inode *inode, qsize_t nr) |
| 338 | { | 334 | { |
| 339 | dquot_free_space_nodirty(inode, nr); | 335 | dquot_free_space_nodirty(inode, nr); |
| 340 | mark_inode_dirty(inode); | 336 | mark_inode_dirty_sync(inode); |
| 341 | } | 337 | } |
| 342 | 338 | ||
| 343 | static inline void dquot_free_block_nodirty(struct inode *inode, qsize_t nr) | 339 | static inline void dquot_free_block_nodirty(struct inode *inode, qsize_t nr) |
