

Stupid patch to avoid a quota bug.  Mainly so I remember it needs to be fixed
for real.


---

 25-akpm/fs/dquot.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)

diff -puN fs/dquot.c~dquot_release-oops-workaround fs/dquot.c
--- 25/fs/dquot.c~dquot_release-oops-workaround	Tue May 11 16:58:11 2004
+++ 25-akpm/fs/dquot.c	Tue May 11 16:58:30 2004
@@ -367,7 +367,8 @@ int dquot_release(struct dquot *dquot)
 	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:

_
