[PATCH] Quota fix 1

From: Jan Kara
Date: Thu May 13 2004 - 09:41:39 EST


Hello,

I'm sending you a patch which fixes the problem with release_dqblk()
being NULL for old quota format. The patch is against 2.6.6 (+the patch
you submitted to Linus). Please apply.

Honza

diff -ru linux-2.6.6-quotactl/fs/dquot.c linux-2.6.6-1-releasefix/fs/dquot.c
--- linux-2.6.6-quotactl/fs/dquot.c Thu May 13 16:31:35 2004
+++ linux-2.6.6-1-releasefix/fs/dquot.c Thu May 13 16:32:09 2004
@@ -367,7 +367,8 @@
if (atomic_read(&dquot->dq_count) > 1)
goto out_dqlock;
down(&dqopt->dqio_sem);
- ret = dqopt->ops[dquot->dq_type]->release_dqblk(dquot);
+ if (dqopt->ops[dquot->dq_type]->release_dqblk)
+ ret = dqopt->ops[dquot->dq_type]->release_dqblk(dquot);
clear_bit(DQ_ACTIVE_B, &dquot->dq_flags);
up(&dqopt->dqio_sem);
out_dqlock: