diff options
author | Jan Kara <jack@suse.cz> | 2014-10-20 10:01:33 -0400 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2014-11-10 04:06:07 -0500 |
commit | 6bab3596bbede980c067eaeaf6a470c262888dac (patch) | |
tree | 87ff11c996d0fa7ce4bbb0c69d680edd76c000e2 | |
parent | 19858e7bdc63e00a401247a17d9f85949b48359d (diff) |
quota: Remove const from function declarations
We don't use const through VFS too much so just remove it from quota
function declarations.
Signed-off-by: Jan Kara <jack@suse.cz>
-rw-r--r-- | fs/quota/dquot.c | 4 | ||||
-rw-r--r-- | include/linux/quotaops.h | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/fs/quota/dquot.c b/fs/quota/dquot.c index a180b1d1a6c6..b1910c915c90 100644 --- a/fs/quota/dquot.c +++ b/fs/quota/dquot.c | |||
@@ -1643,7 +1643,7 @@ EXPORT_SYMBOL(__dquot_alloc_space); | |||
1643 | /* | 1643 | /* |
1644 | * This operation can block, but only after everything is updated | 1644 | * This operation can block, but only after everything is updated |
1645 | */ | 1645 | */ |
1646 | int dquot_alloc_inode(const struct inode *inode) | 1646 | int dquot_alloc_inode(struct inode *inode) |
1647 | { | 1647 | { |
1648 | int cnt, ret = 0, index; | 1648 | int cnt, ret = 0, index; |
1649 | struct dquot_warn warn[MAXQUOTAS]; | 1649 | struct dquot_warn warn[MAXQUOTAS]; |
@@ -1784,7 +1784,7 @@ EXPORT_SYMBOL(__dquot_free_space); | |||
1784 | /* | 1784 | /* |
1785 | * This operation can block, but only after everything is updated | 1785 | * This operation can block, but only after everything is updated |
1786 | */ | 1786 | */ |
1787 | void dquot_free_inode(const struct inode *inode) | 1787 | void dquot_free_inode(struct inode *inode) |
1788 | { | 1788 | { |
1789 | unsigned int cnt; | 1789 | unsigned int cnt; |
1790 | struct dquot_warn warn[MAXQUOTAS]; | 1790 | struct dquot_warn warn[MAXQUOTAS]; |
diff --git a/include/linux/quotaops.h b/include/linux/quotaops.h index 1d3eee594cd6..f23538a6e411 100644 --- a/include/linux/quotaops.h +++ b/include/linux/quotaops.h | |||
@@ -64,10 +64,10 @@ void dquot_destroy(struct dquot *dquot); | |||
64 | int __dquot_alloc_space(struct inode *inode, qsize_t number, int flags); | 64 | int __dquot_alloc_space(struct inode *inode, qsize_t number, int flags); |
65 | void __dquot_free_space(struct inode *inode, qsize_t number, int flags); | 65 | void __dquot_free_space(struct inode *inode, qsize_t number, int flags); |
66 | 66 | ||
67 | int dquot_alloc_inode(const struct inode *inode); | 67 | int dquot_alloc_inode(struct inode *inode); |
68 | 68 | ||
69 | int dquot_claim_space_nodirty(struct inode *inode, qsize_t number); | 69 | int dquot_claim_space_nodirty(struct inode *inode, qsize_t number); |
70 | void dquot_free_inode(const struct inode *inode); | 70 | void dquot_free_inode(struct inode *inode); |
71 | void dquot_reclaim_space_nodirty(struct inode *inode, qsize_t number); | 71 | void dquot_reclaim_space_nodirty(struct inode *inode, qsize_t number); |
72 | 72 | ||
73 | int dquot_disable(struct super_block *sb, int type, unsigned int flags); | 73 | int dquot_disable(struct super_block *sb, int type, unsigned int flags); |
@@ -213,12 +213,12 @@ static inline void dquot_drop(struct inode *inode) | |||
213 | { | 213 | { |
214 | } | 214 | } |
215 | 215 | ||
216 | static inline int dquot_alloc_inode(const struct inode *inode) | 216 | static inline int dquot_alloc_inode(struct inode *inode) |
217 | { | 217 | { |
218 | return 0; | 218 | return 0; |
219 | } | 219 | } |
220 | 220 | ||
221 | static inline void dquot_free_inode(const struct inode *inode) | 221 | static inline void dquot_free_inode(struct inode *inode) |
222 | { | 222 | { |
223 | } | 223 | } |
224 | 224 | ||