Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 186096
b: refs/heads/master
c: a56fca2
h: refs/heads/master
v: v3
  • Loading branch information
Christoph Hellwig authored and Jan Kara committed Mar 4, 2010
1 parent e1dc820 commit 9702af4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 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: 5fb324ad24febe57a8a2e62903dcb7bad546ea71
refs/heads/master: a56fca23f67282467c08e75c40081da2345dfdbf
15 changes: 0 additions & 15 deletions trunk/fs/quota/quota.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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);
Expand Down

0 comments on commit 9702af4

Please sign in to comment.