xfs-masters
[Top] [All Lists]

[xfs-masters] Re: [PATCH] - remove local random function, use lib/random

To: xfs-masters@xxxxxxxxxxx
Subject: [xfs-masters] Re: [PATCH] - remove local random function, use lib/random.c random32()
From: Eric Sandeen <sandeen@xxxxxxxxxxx>
Date: Mon, 19 Feb 2007 08:37:13 -0600
Cc: xfs@xxxxxxxxxxx
In-reply-to: <1171838404.32497.12.camel@localhost>
References: <1171838404.32497.12.camel@localhost>
Reply-to: xfs-masters@xxxxxxxxxxx
Sender: xfs-masters-bounce@xxxxxxxxxxx
User-agent: Thunderbird 1.5.0.9 (Macintosh/20061207)
Joe Perches wrote:
> reducing the number of random number functions
> 
> Signed-off-by: Joe Perches <joe@xxxxxxxxxxx>

Looks good to me; since this is utilizing linux symbols in core xfs 
code, I might move the #include glue into xfs_linux.h rather than 
support.h, but that's nitpicking.  I'll let the sgi guys decide on that...

Good catch!

-Eric

> diff --git a/fs/xfs/support/debug.c b/fs/xfs/support/debug.c
> index 4363512..200b701 100644
> --- a/fs/xfs/support/debug.c
> +++ b/fs/xfs/support/debug.c
> @@ -78,20 +78,3 @@ assfail(char *expr, char *file, int line)
>       printk("Assertion failed: %s, file: %s, line: %d\n", expr, file, line);
>       BUG();
>  }
> -
> -#if ((defined(DEBUG) || defined(INDUCE_IO_ERRROR)) && 
> !defined(NO_WANT_RANDOM))
> -unsigned long random(void)

...


<Prev in Thread] Current Thread [Next in Thread>