summaryrefslogtreecommitdiffstats
path: root/fs/stat.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>1998-08-25 09:12:35 +0000
committerRalf Baechle <ralf@linux-mips.org>1998-08-25 09:12:35 +0000
commitc7fc24dc4420057f103afe8fc64524ebc25c5d37 (patch)
tree3682407a599b8f9f03fc096298134cafba1c9b2f /fs/stat.c
parent1d793fade8b063fde3cf275bf1a5c2d381292cd9 (diff)
o Merge with Linux 2.1.116.
o New Newport console code. o New G364 console code.
Diffstat (limited to 'fs/stat.c')
-rw-r--r--fs/stat.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/fs/stat.c b/fs/stat.c
index edc22b27f..b552aa68c 100644
--- a/fs/stat.c
+++ b/fs/stat.c
@@ -38,10 +38,15 @@ do_revalidate(struct dentry *dentry)
*/
static int cp_old_stat(struct inode * inode, struct __old_kernel_stat * statbuf)
{
+ static int warncount = 5;
struct __old_kernel_stat tmp;
- printk("VFS: Warning: %s using old stat() call. Recompile your binary.\n",
- current->comm);
+ if (warncount) {
+ warncount--;
+ 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;
@@ -87,7 +92,7 @@ static int cp_new_stat(struct inode * inode, struct stat * statbuf)
/*
* Use minix fs values for the number of direct and indirect blocks. The
* count is now exact for the minix fs except that it counts zero blocks.
- * Everything is in BLOCK_SIZE'd units until the assignment to
+ * Everything is in units of BLOCK_SIZE until the assignment to
* tmp.st_blksize.
*/
#define D_B 7