diff options
| author | Dan Williams <dan.j.williams@intel.com> | 2009-09-08 20:55:21 -0400 |
|---|---|---|
| committer | Dan Williams <dan.j.williams@intel.com> | 2009-09-08 20:55:21 -0400 |
| commit | bbb20089a3275a19e475dbc21320c3742e3ca423 (patch) | |
| tree | 216fdc1cbef450ca688135c5b8969169482d9a48 /include/linux/quotaops.h | |
| parent | 3e48e656903e9fd8bc805c6a2c4264d7808d315b (diff) | |
| parent | 657a77fa7284d8ae28dfa48f1dc5d919bf5b2843 (diff) | |
Merge branch 'dmaengine' into async-tx-next
Conflicts:
crypto/async_tx/async_xor.c
drivers/dma/ioat/dma_v2.h
drivers/dma/ioat/pci.c
drivers/md/raid5.c
Diffstat (limited to 'include/linux/quotaops.h')
| -rw-r--r-- | include/linux/quotaops.h | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/include/linux/quotaops.h b/include/linux/quotaops.h index 36353d95c8db..7bc457593684 100644 --- a/include/linux/quotaops.h +++ b/include/linux/quotaops.h | |||
| @@ -20,7 +20,12 @@ static inline struct quota_info *sb_dqopt(struct super_block *sb) | |||
| 20 | /* | 20 | /* |
| 21 | * declaration of quota_function calls in kernel. | 21 | * declaration of quota_function calls in kernel. |
| 22 | */ | 22 | */ |
| 23 | void sync_dquots(struct super_block *sb, int type); | 23 | void sync_quota_sb(struct super_block *sb, int type); |
| 24 | static inline void writeout_quota_sb(struct super_block *sb, int type) | ||
| 25 | { | ||
| 26 | if (sb->s_qcop->quota_sync) | ||
| 27 | sb->s_qcop->quota_sync(sb, type); | ||
| 28 | } | ||
| 24 | 29 | ||
| 25 | int dquot_initialize(struct inode *inode, int type); | 30 | int dquot_initialize(struct inode *inode, int type); |
| 26 | int dquot_drop(struct inode *inode); | 31 | int dquot_drop(struct inode *inode); |
| @@ -253,12 +258,7 @@ static inline void vfs_dq_free_inode(struct inode *inode) | |||
| 253 | inode->i_sb->dq_op->free_inode(inode, 1); | 258 | inode->i_sb->dq_op->free_inode(inode, 1); |
| 254 | } | 259 | } |
| 255 | 260 | ||
| 256 | /* The following two functions cannot be called inside a transaction */ | 261 | /* Cannot be called inside a transaction */ |
| 257 | static inline void vfs_dq_sync(struct super_block *sb) | ||
| 258 | { | ||
| 259 | sync_dquots(sb, -1); | ||
| 260 | } | ||
| 261 | |||
| 262 | static inline int vfs_dq_off(struct super_block *sb, int remount) | 262 | static inline int vfs_dq_off(struct super_block *sb, int remount) |
| 263 | { | 263 | { |
| 264 | int ret = -ENOSYS; | 264 | int ret = -ENOSYS; |
| @@ -334,7 +334,11 @@ static inline void vfs_dq_free_inode(struct inode *inode) | |||
| 334 | { | 334 | { |
| 335 | } | 335 | } |
| 336 | 336 | ||
| 337 | static inline void vfs_dq_sync(struct super_block *sb) | 337 | static inline void sync_quota_sb(struct super_block *sb, int type) |
| 338 | { | ||
| 339 | } | ||
| 340 | |||
| 341 | static inline void writeout_quota_sb(struct super_block *sb, int type) | ||
| 338 | { | 342 | { |
| 339 | } | 343 | } |
| 340 | 344 | ||
