Re: IPChains in 2.1.102

Meelis Roos (mroos@tartu.cyber.ee)
Fri, 15 May 1998 19:19:19 +0300 (EEST)


When turning on the quotas while user quota file or group quota file is
kas invalid length (zero or some record is not full length), dcache is
corrumpted. This patch tries to fix it. Is this the right way to to it?
Seems to work for me, no more messages about iput and aliases.

Thanks to Bill Hawes for helping to find it out.

--- linux/fs/dquot.c Fri May 15 19:05:04 1998
+++ linux/fs/my_dquot.c Fri May 15 19:05:36 1998
@@ -1169,7 +1169,7 @@
}

if (inode->i_size == 0 || (inode->i_size % sizeof(struct dqblk)) != 0) {
- iput(inode);
+ dput(dentry);
return(-EINVAL);
}

---
Meelis Roos (mroos@tartu.cyber.ee)

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu