aboutsummaryrefslogtreecommitdiffstats
path: root/fs/dquot.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/dquot.c')
-rw-r--r--fs/dquot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/dquot.c b/fs/dquot.c
index dcc5a582e1f1..3a995841de90 100644
--- a/fs/dquot.c
+++ b/fs/dquot.c
@@ -474,7 +474,7 @@ int vfs_quota_sync(struct super_block *sb, int type)
474 spin_lock(&dq_list_lock); 474 spin_lock(&dq_list_lock);
475 dirty = &dqopt->info[cnt].dqi_dirty_list; 475 dirty = &dqopt->info[cnt].dqi_dirty_list;
476 while (!list_empty(dirty)) { 476 while (!list_empty(dirty)) {
477 dquot = list_entry(dirty->next, struct dquot, dq_dirty); 477 dquot = list_first_entry(dirty, struct dquot, dq_dirty);
478 /* Dirty and inactive can be only bad dquot... */ 478 /* Dirty and inactive can be only bad dquot... */
479 if (!test_bit(DQ_ACTIVE_B, &dquot->dq_flags)) { 479 if (!test_bit(DQ_ACTIVE_B, &dquot->dq_flags)) {
480 clear_dquot_dirty(dquot); 480 clear_dquot_dirty(dquot);