minor patch for 2.1.88 inode messages

Bill Hawes (whawes@star.net)
Mon, 23 Feb 1998 10:09:16 -0500


This is a multi-part message in MIME format.
--------------2E55F30007F1DBD57DEBB8AE
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

The attached patch makes some minor revisions to the inode sanity check
messages, and adds a check to make sure no locks are still associated with an
unused inode.

Regards,
Bill
--------------2E55F30007F1DBD57DEBB8AE
Content-Type: text/plain; charset=us-ascii; name="inode_msg88-patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="inode_msg88-patch"

--- fs/inode.c.old Wed Feb 11 00:06:11 1998
+++ fs/inode.c Sat Feb 21 10:14:02 1998
@@ -701,19 +750,22 @@
list_add(&inode->i_list, inode_in_use.prev);
}
#ifdef INODE_PARANOIA
+if (inode->i_flock)
+printk(KERN_ERR "iput: inode %s/%ld still has locks!\n",
+kdevname(inode->i_dev), inode->i_ino);
if (!list_empty(&inode->i_dentry))
-printk("iput: device %s inode %ld still has aliases!\n",
+printk(KERN_ERR "iput: device %s inode %ld still has aliases!\n",
kdevname(inode->i_dev), inode->i_ino);
if (inode->i_count)
-printk("iput: device %s inode %ld count changed, count=%d\n",
+printk(KERN_ERR "iput: device %s inode %ld count changed, count=%d\n",
kdevname(inode->i_dev), inode->i_ino, inode->i_count);
if (atomic_read(&inode->i_sem.count) != 1)
-printk("iput: Aieee, semaphore in use device %s, count=%d\n",
+printk(KERN_ERR "iput: Aieee, semaphore in use device %s, count=%d\n",
kdevname(inode->i_dev), atomic_read(&inode->i_sem.count));
#endif
}
- if (inode->i_count > (1<<15)) {
- printk("iput: device %s inode %ld count wrapped\n",
+ if (inode->i_count > (1<<31)) {
+ printk(KERN_ERR "iput: inode %s/%ld count wrapped\n",
kdevname(inode->i_dev), inode->i_ino);
}
spin_unlock(&inode_lock);

--------------2E55F30007F1DBD57DEBB8AE--

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