diff options
author | Jan Kara <jack@suse.cz> | 2010-07-21 08:22:21 -0400 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2010-07-23 06:50:46 -0400 |
commit | 43d2932d88e4ab776dd388c20b003ebd5e1d1f1f (patch) | |
tree | 04ace338522936dc7e5ed557397bbff6072b4a20 /include/linux | |
parent | fb5ffb0e160c93c3fe08ab83845eb9a2768af812 (diff) |
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: Jan Kara <jack@suse.cz>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/quotaops.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/linux/quotaops.h b/include/linux/quotaops.h index 4881b49b1a9a..d50ba858cfe0 100644 --- a/include/linux/quotaops.h +++ b/include/linux/quotaops.h | |||
@@ -266,7 +266,7 @@ static inline int dquot_alloc_space_nodirty(struct inode *inode, qsize_t nr) | |||
266 | 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) |
267 | { | 267 | { |
268 | __dquot_alloc_space(inode, nr, DQUOT_SPACE_WARN|DQUOT_SPACE_NOFAIL); | 268 | __dquot_alloc_space(inode, nr, DQUOT_SPACE_WARN|DQUOT_SPACE_NOFAIL); |
269 | mark_inode_dirty(inode); | 269 | mark_inode_dirty_sync(inode); |
270 | } | 270 | } |
271 | 271 | ||
272 | 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) |
@@ -275,7 +275,7 @@ static inline int dquot_alloc_space(struct inode *inode, qsize_t nr) | |||
275 | 275 | ||
276 | ret = dquot_alloc_space_nodirty(inode, nr); | 276 | ret = dquot_alloc_space_nodirty(inode, nr); |
277 | if (!ret) | 277 | if (!ret) |
278 | mark_inode_dirty(inode); | 278 | mark_inode_dirty_sync(inode); |
279 | return ret; | 279 | return ret; |
280 | } | 280 | } |
281 | 281 | ||
@@ -305,7 +305,7 @@ static inline int dquot_prealloc_block(struct inode *inode, qsize_t nr) | |||
305 | 305 | ||
306 | ret = dquot_prealloc_block_nodirty(inode, nr); | 306 | ret = dquot_prealloc_block_nodirty(inode, nr); |
307 | if (!ret) | 307 | if (!ret) |
308 | mark_inode_dirty(inode); | 308 | mark_inode_dirty_sync(inode); |
309 | return ret; | 309 | return ret; |
310 | } | 310 | } |
311 | 311 | ||
@@ -321,7 +321,7 @@ static inline int dquot_claim_block(struct inode *inode, qsize_t nr) | |||
321 | 321 | ||
322 | ret = dquot_claim_space_nodirty(inode, nr << inode->i_blkbits); | 322 | ret = dquot_claim_space_nodirty(inode, nr << inode->i_blkbits); |
323 | if (!ret) | 323 | if (!ret) |
324 | mark_inode_dirty(inode); | 324 | mark_inode_dirty_sync(inode); |
325 | return ret; | 325 | return ret; |
326 | } | 326 | } |
327 | 327 | ||
@@ -333,7 +333,7 @@ static inline void dquot_free_space_nodirty(struct inode *inode, qsize_t nr) | |||
333 | 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) |
334 | { | 334 | { |
335 | dquot_free_space_nodirty(inode, nr); | 335 | dquot_free_space_nodirty(inode, nr); |
336 | mark_inode_dirty(inode); | 336 | mark_inode_dirty_sync(inode); |
337 | } | 337 | } |
338 | 338 | ||
339 | 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) |