2.1.56 quota patch

Philip Blundell (Philip.Blundell@pobox.com)
Sat, 20 Sep 1997 15:07:43 -0000


This small patch fixes a compile problem with 2.1.56. Somebody who
understands these things better than I should probably check that it's correct.

--- linux/fs/dquot.c~ Sat Sep 20 12:19:15 1997
+++ linux/fs/dquot.c Sat Sep 20 14:51:22 1997
@@ -229,7 +229,7 @@
lock_dquot(dquot);
down(&dquot->dq_mnt->mnt_sem);
if (filp->f_op->llseek) {
- if (filp->f_op->llseek(filp->f_dentry->d_inode, filp,
+ if (filp->f_op->llseek(filp,
dqoff(dquot->dq_id), 0) != dqoff(dquot->dq_id)) {
up(&dquot->dq_mnt->mnt_sem);
unlock_dquot(dquot);
@@ -261,7 +261,7 @@
lock_dquot(dquot);
down(&dquot->dq_mnt->mnt_sem);
if (filp->f_op->llseek) {
- if (filp->f_op->llseek(filp->f_dentry->d_inode, filp,
+ if (filp->f_op->llseek(filp,
dqoff(dquot->dq_id), 0) != dqoff(dquot->dq_id)) {
up(&dquot->dq_mnt->mnt_sem);
unlock_dquot(dquot);

p.