Skip to content

Commit

Permalink
Merge branch 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel…
Browse files Browse the repository at this point in the history
…/git/jack/linux-fs-2.6

* 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs-2.6:
  dquot: do full inode dirty in allocating space
  • Loading branch information
Linus Torvalds committed Sep 13, 2010
2 parents 6142811 + d530148 commit 2bb3a25
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions include/linux/quotaops.h
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,14 @@ static inline int dquot_alloc_space(struct inode *inode, qsize_t nr)
int ret;

ret = dquot_alloc_space_nodirty(inode, nr);
if (!ret)
mark_inode_dirty_sync(inode);
if (!ret) {
/*
* Mark inode fully dirty. Since we are allocating blocks, inode
* would become fully dirty soon anyway and it reportedly
* reduces inode_lock contention.
*/
mark_inode_dirty(inode);
}
return ret;
}

Expand Down

0 comments on commit 2bb3a25

Please sign in to comment.