bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: rm -rf: avoid ext3/4 O(N^2) performance hit, further librarify remov


From: Ralf Wildenhues
Subject: Re: rm -rf: avoid ext3/4 O(N^2) performance hit, further librarify remove.c
Date: Fri, 26 Sep 2008 08:14:25 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

Hello Jim, a tiny nit again:

Jim Meyering <jim <at> meyering.net> writes:
> +/* A comparison function to sort on increasing inode number.  */
> +static int
> +compare_ino (void const *av, void const *bv)
> +{
> +  struct readdir_data const *const *a = av;
> +  struct readdir_data const *const *b = bv;
> +  return a[0]->ino - b[0]->ino;
> +}

Susceptible to integer overflow, like the gnulib code.

Cheers,
Ralf





reply via email to

[Prev in Thread] Current Thread [Next in Thread]