From 9702af4fe2d6f8bb9d556aa51e43b38dc632e3bc Mon Sep 17 00:00:00 2001 From: Christoph Hellwig Date: Tue, 16 Feb 2010 03:44:53 -0500 Subject: [PATCH] --- yaml --- r: 186096 b: refs/heads/master c: a56fca23f67282467c08e75c40081da2345dfdbf h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/quota/quota.c | 15 --------------- 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/[refs] b/[refs] index 3f5394ab8ed8..35be33b504fb 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 5fb324ad24febe57a8a2e62903dcb7bad546ea71 +refs/heads/master: a56fca23f67282467c08e75c40081da2345dfdbf diff --git a/trunk/fs/quota/quota.c b/trunk/fs/quota/quota.c index 0593b229656c..a43bb2c3ceaf 100644 --- a/trunk/fs/quota/quota.c +++ b/trunk/fs/quota/quota.c @@ -51,7 +51,6 @@ static int check_quotactl_permission(struct super_block *sb, int type, int cmd, static int quota_sync_all(int type) { struct super_block *sb; - int cnt; int ret; if (type >= MAXQUOTAS) @@ -66,20 +65,6 @@ static int quota_sync_all(int type) if (!sb->s_qcop || !sb->s_qcop->quota_sync) continue; - /* This test just improves performance so it needn't be - * reliable... */ - for (cnt = 0; cnt < MAXQUOTAS; cnt++) { - if (type != -1 && type != cnt) - continue; - if (!sb_has_quota_active(sb, cnt)) - continue; - if (!info_dirty(&sb_dqopt(sb)->info[cnt]) && - list_empty(&sb_dqopt(sb)->info[cnt].dqi_dirty_list)) - continue; - break; - } - if (cnt == MAXQUOTAS) - continue; sb->s_count++; spin_unlock(&sb_lock); down_read(&sb->s_umount);