On Tue, 6 Jun 2006, Christoph Lameter wrote:
>
> It evaluates to 31 it seems for all platforms. Could we replace this
> expression with MAX_SWAPFILES? While we at it get rid of the "type"
> variable because we are usually using pointers to swap_info.
Well, if you want to go through all of swapfile.c, changing it over
to use pointers rather than type/indexes. But I don't think it's
worth it, and I don't think it should be mixed in with this fix.
> Note that there is still another similar check in there for an arch
> specific test of the number of pages available per swap device.
And that check, also Martin's I believe, has very good justification:
it will vary from arch to arch how big a swap area they can handle, and
his check is the right way to do it - no more obscure than it has to be.
Hugh
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]