Commit 6bab3596 authored by Jan Kara's avatar Jan Kara

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: default avatarJan Kara <jack@suse.cz>
parent 19858e7b
......@@ -1643,7 +1643,7 @@ EXPORT_SYMBOL(__dquot_alloc_space);
/*
* This operation can block, but only after everything is updated
*/
int dquot_alloc_inode(const struct inode *inode)
int dquot_alloc_inode(struct inode *inode)
{
int cnt, ret = 0, index;
struct dquot_warn warn[MAXQUOTAS];
......@@ -1784,7 +1784,7 @@ EXPORT_SYMBOL(__dquot_free_space);
/*
* This operation can block, but only after everything is updated
*/
void dquot_free_inode(const struct inode *inode)
void dquot_free_inode(struct inode *inode)
{
unsigned int cnt;
struct dquot_warn warn[MAXQUOTAS];
......
......@@ -64,10 +64,10 @@ void dquot_destroy(struct dquot *dquot);
int __dquot_alloc_space(struct inode *inode, qsize_t number, int flags);
void __dquot_free_space(struct inode *inode, qsize_t number, int flags);
int dquot_alloc_inode(const struct inode *inode);
int dquot_alloc_inode(struct inode *inode);
int dquot_claim_space_nodirty(struct inode *inode, qsize_t number);
void dquot_free_inode(const struct inode *inode);
void dquot_free_inode(struct inode *inode);
void dquot_reclaim_space_nodirty(struct inode *inode, qsize_t number);
int dquot_disable(struct super_block *sb, int type, unsigned int flags);
......@@ -213,12 +213,12 @@ static inline void dquot_drop(struct inode *inode)
{
}
static inline int dquot_alloc_inode(const struct inode *inode)
static inline int dquot_alloc_inode(struct inode *inode)
{
return 0;
}
static inline void dquot_free_inode(const struct inode *inode)
static inline void dquot_free_inode(struct inode *inode)
{
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment