lkml.org 
[lkml]   [1999]   [Jan]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Hmmm... ???
On Wed, 20 Jan 1999, Sasi Peter wrote:

> What did I do wrong?
>
> [root@iq linux-2.2.0-pre6]# find -name '*.c' -o -name '*.h'|xargs -n 1 grep -c 'goto '|awk 'BEGIN {c=0} {c+=$1} END {print c}'
> 6130
> [root@iq linux-2.2.0-pre6]# cd ../linux-2.0.36
> [root@iq linux-2.0.36]# find -name '*.c' -o -name '*.h'|xargs -n 1 grep -c 'goto '|awk 'BEGIN {c=0} {c+=$1} END {print c}'
> 1826
> [root@iq linux-2.0.36]#
>
> ;)

Gotos are used heavily in the filesystem code, and we have quite a few
more of them now. I think that would account for a lot of it. The
dentry stuff makes for more things which should be unlocked or "put"
which, in turn, makes for more gotos.

I think.

Matthew.


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:49    [W:0.031 / U:0.116 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site