fs/dquot.c patch

Graffiti (ramune@datadepot.com)
Sat, 27 Sep 1997 22:07:59 -0700 (PDT)


Hi all!

It seems that error I reported in 2.1.56 is in 2.1.57 as well.
Here's a patch to get rid of the argument mis-match. But I haven't
the slightest idea what the intention of adding that
fild->f_dentry->d_inode in the code was, so I haven't the slightest
idea if this is the right fix or not. :-)

Bye!

--- dquot.c Sat Sep 27 22:04:01 1997
+++ dquot.c.pat Sat Sep 27 22:02:55 1997
@@ -229,8 +229,8 @@
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,
- dqoff(dquot->dq_id), 0) != dqoff(dquot->dq_id)) {
+ if (filp->f_op->llseek(filp, dqoff(dquot->dq_id),
+ 0) != dqoff(dquot->dq_id)) {
up(&dquot->dq_mnt->mnt_sem);
unlock_dquot(dquot);
return;
@@ -261,8 +261,8 @@
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,
- dqoff(dquot->dq_id), 0) != dqoff(dquot->dq_id)) {
+ if (filp->f_op->llseek(filp, dqoff(dquot->dq_id),
+ 0) != dqoff(dquot->dq_id)) {
up(&dquot->dq_mnt->mnt_sem);
unlock_dquot(dquot);
return;