Re: [patch] remove artificial software max_loop limit
From: Jan Engelhardt
Date: Fri Mar 30 2007 - 12:17:27 EST
On Mar 30 2007 02:25, Ken Chen wrote:
>
> Oh, crap. Google mail is innocent. It was me who did some ugly
> copy-paste between apps.
Well, you did it again :p
> I don't mind either way, this thing won't be bigger than 1^20 anyway.
> Oh, which reminds me that we probably should explicitly test and cap
> that limit (1^20 that is).
I do not think is needed, since it will already be caught by the
layout of a dev_t.
> +static struct loop_device *loop_find_dev(int number)
> +{
> + struct loop_device *lo;
> +
> + list_for_each_entry(lo, &loop_devices, lo_list) {
> + if (lo->lo_number == number)
> + return lo;
> + }
Can do without {}
Jan
--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/