patch-2.0.35 linux/fs/stat.c

Next file: linux/fs/super.c
Previous file: linux/fs/proc/array.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.0.34/linux/fs/stat.c linux/fs/stat.c
@@ -23,9 +23,13 @@
 static void cp_old_stat(struct inode * inode, struct old_stat * statbuf)
 {
 	struct old_stat tmp;
+	static int nagcount = 0;
+
+	if (++nagcount < 5)
+		printk("VFS: Warning: %s using old stat() call. "
+			"Recompile your binary.\n",
+			current->comm);
 
-	printk("VFS: Warning: %s using old stat() call. Recompile your binary.\n",
-		current->comm);
 	tmp.st_dev = kdev_t_to_nr(inode->i_dev);
 	tmp.st_ino = inode->i_ino;
 	tmp.st_mode = inode->i_mode;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov