diff options
author | Bill Paul <wpaul@FreeBSD.org> | 1999-09-25 17:29:02 +0000 |
---|---|---|
committer | Bill Paul <wpaul@FreeBSD.org> | 1999-09-25 17:29:02 +0000 |
commit | 784733e9ecb7b3cbb1655b9026841f7bcbcba164 (patch) | |
tree | 8e8df6b8855e2f7de9677060885f3b8f4df5e5d2 /sys/dev/sf | |
parent | 87b0140cdf82d3735d6b5bdc220088338cd7362b (diff) | |
download | src-784733e9ecb7b3cbb1655b9026841f7bcbcba164.tar.gz src-784733e9ecb7b3cbb1655b9026841f7bcbcba164.zip |
Change contigmalloc() lower memory bound from 1MB to 0 to improve
chances of allocations succeeding on systems with small amounts of
RAM.
Pointed out by: bde
Notes
Notes:
svn path=/head/; revision=51657
Diffstat (limited to 'sys/dev/sf')
-rw-r--r-- | sys/dev/sf/if_sf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/sf/if_sf.c b/sys/dev/sf/if_sf.c index f9e9d3afccfb..59d9a89fc6ad 100644 --- a/sys/dev/sf/if_sf.c +++ b/sys/dev/sf/if_sf.c @@ -766,7 +766,7 @@ static int sf_attach(dev) /* Allocate the descriptor queues. */ sc->sf_ldata = contigmalloc(sizeof(struct sf_list_data), M_DEVBUF, - M_NOWAIT, 0x100000, 0xffffffff, PAGE_SIZE, 0); + M_NOWAIT, 0, 0xffffffff, PAGE_SIZE, 0); if (sc->sf_ldata == NULL) { printf("sf%d: no memory for list buffers!\n", unit); |