Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 105879
b: refs/heads/master
c: b48d380
h: refs/heads/master
i:
  105877: db630b1
  105875: e888d0b
  105871: ad26958
v: v3
  • Loading branch information
Jan Kara authored and Linus Torvalds committed Jul 25, 2008
1 parent 20d4355 commit 30200a2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 41003cde95e7e976d3876dbdcdc83dd0a9059279
refs/heads/master: b48d380541f634663b71766005838edbb7261685
16 changes: 15 additions & 1 deletion trunk/fs/dquot.c
Original file line number Diff line number Diff line change
Expand Up @@ -562,6 +562,8 @@ static struct shrinker dqcache_shrinker = {
*/
static void dqput(struct dquot *dquot)
{
int ret;

if (!dquot)
return;
#ifdef __DQUOT_PARANOIA
Expand Down Expand Up @@ -594,7 +596,19 @@ static void dqput(struct dquot *dquot)
if (test_bit(DQ_ACTIVE_B, &dquot->dq_flags) && dquot_dirty(dquot)) {
spin_unlock(&dq_list_lock);
/* Commit dquot before releasing */
dquot->dq_sb->dq_op->write_dquot(dquot);
ret = dquot->dq_sb->dq_op->write_dquot(dquot);
if (ret < 0) {
printk(KERN_ERR "VFS: cannot write quota structure on "
"device %s (error %d). Quota may get out of "
"sync!\n", dquot->dq_sb->s_id, ret);
/*
* We clear dirty bit anyway, so that we avoid
* infinite loop here
*/
spin_lock(&dq_list_lock);
clear_dquot_dirty(dquot);
spin_unlock(&dq_list_lock);
}
goto we_slept;
}
/* Clear flag in case dquot was inactive (something bad happened) */
Expand Down

0 comments on commit 30200a2

Please sign in to comment.