Commit 43d2932d authored by Jan Kara's avatar Jan Kara

quota: Use mark_inode_dirty_sync instead of mark_inode_dirty

Quota code never touches file data. It just modifies i_blocks + i_bytes
of inodes and inode flags of quota files. So use mark_inode_dirty_sync
instead of mark_inode_dirty.
Signed-off-by: default avatarJan Kara <jack@suse.cz>
parent fb5ffb0e
...@@ -1992,7 +1992,7 @@ int dquot_disable(struct super_block *sb, int type, unsigned int flags) ...@@ -1992,7 +1992,7 @@ int dquot_disable(struct super_block *sb, int type, unsigned int flags)
truncate_inode_pages(&toputinode[cnt]->i_data, truncate_inode_pages(&toputinode[cnt]->i_data,
0); 0);
mutex_unlock(&toputinode[cnt]->i_mutex); mutex_unlock(&toputinode[cnt]->i_mutex);
mark_inode_dirty(toputinode[cnt]); mark_inode_dirty_sync(toputinode[cnt]);
} }
mutex_unlock(&dqopt->dqonoff_mutex); mutex_unlock(&dqopt->dqonoff_mutex);
} }
......
...@@ -266,7 +266,7 @@ static inline int dquot_alloc_space_nodirty(struct inode *inode, qsize_t nr) ...@@ -266,7 +266,7 @@ static inline int dquot_alloc_space_nodirty(struct inode *inode, qsize_t nr)
static inline void dquot_alloc_space_nofail(struct inode *inode, qsize_t nr) static inline void dquot_alloc_space_nofail(struct inode *inode, qsize_t nr)
{ {
__dquot_alloc_space(inode, nr, DQUOT_SPACE_WARN|DQUOT_SPACE_NOFAIL); __dquot_alloc_space(inode, nr, DQUOT_SPACE_WARN|DQUOT_SPACE_NOFAIL);
mark_inode_dirty(inode); mark_inode_dirty_sync(inode);
} }
static inline int dquot_alloc_space(struct inode *inode, qsize_t nr) static inline int dquot_alloc_space(struct inode *inode, qsize_t nr)
...@@ -275,7 +275,7 @@ static inline int dquot_alloc_space(struct inode *inode, qsize_t nr) ...@@ -275,7 +275,7 @@ static inline int dquot_alloc_space(struct inode *inode, qsize_t nr)
ret = dquot_alloc_space_nodirty(inode, nr); ret = dquot_alloc_space_nodirty(inode, nr);
if (!ret) if (!ret)
mark_inode_dirty(inode); mark_inode_dirty_sync(inode);
return ret; return ret;
} }
...@@ -305,7 +305,7 @@ static inline int dquot_prealloc_block(struct inode *inode, qsize_t nr) ...@@ -305,7 +305,7 @@ static inline int dquot_prealloc_block(struct inode *inode, qsize_t nr)
ret = dquot_prealloc_block_nodirty(inode, nr); ret = dquot_prealloc_block_nodirty(inode, nr);
if (!ret) if (!ret)
mark_inode_dirty(inode); mark_inode_dirty_sync(inode);
return ret; return ret;
} }
...@@ -321,7 +321,7 @@ static inline int dquot_claim_block(struct inode *inode, qsize_t nr) ...@@ -321,7 +321,7 @@ static inline int dquot_claim_block(struct inode *inode, qsize_t nr)
ret = dquot_claim_space_nodirty(inode, nr << inode->i_blkbits); ret = dquot_claim_space_nodirty(inode, nr << inode->i_blkbits);
if (!ret) if (!ret)
mark_inode_dirty(inode); mark_inode_dirty_sync(inode);
return ret; return ret;
} }
...@@ -333,7 +333,7 @@ static inline void dquot_free_space_nodirty(struct inode *inode, qsize_t nr) ...@@ -333,7 +333,7 @@ static inline void dquot_free_space_nodirty(struct inode *inode, qsize_t nr)
static inline void dquot_free_space(struct inode *inode, qsize_t nr) static inline void dquot_free_space(struct inode *inode, qsize_t nr)
{ {
dquot_free_space_nodirty(inode, nr); dquot_free_space_nodirty(inode, nr);
mark_inode_dirty(inode); mark_inode_dirty_sync(inode);
} }
static inline void dquot_free_block_nodirty(struct inode *inode, qsize_t nr) static inline void dquot_free_block_nodirty(struct inode *inode, qsize_t nr)
......
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