[Netadm-devel] gwc/pf pf.c,1.8,1.9
Status: Beta
Brought to you by:
linuxpark
From: linuxpark <lin...@us...> - 2006-04-13 14:01:50
|
Update of /cvsroot/netadm/gwc/pf In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17265 Modified Files: pf.c Log Message: FIX: fix spelling and add comment about num_physpages. Index: pf.c =================================================================== RCS file: /cvsroot/netadm/gwc/pf/pf.c,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** pf.c 18 Mar 2006 17:45:41 -0000 1.8 --- pf.c 13 Apr 2006 14:01:45 -0000 1.9 *************** *** 269,273 **** return -1; } ! goal = num_physpages >> (26 - PAGE_SHIFT); for(order=0; (1UL<<order)<goal; order++); --- 269,274 ---- return -1; } ! ! /* @num_physpages: system global variable which means real page (4k) number of your ram */ goal = num_physpages >> (26 - PAGE_SHIFT); for(order=0; (1UL<<order)<goal; order++); *************** *** 283,287 **** }while( blk_hash_table==NULL && --order > 0 ); ! printk("%s: num_physpages (%ld) PAGE_SHIFT (%d) goad(%d) blk_hash_mask(%x)\n", DEVICE_NAME, num_physpages, PAGE_SHIFT, goal, blk_hash_mask); --- 284,288 ---- }while( blk_hash_table==NULL && --order > 0 ); ! printk("%s: num_physpages (%ld) PAGE_SHIFT (%d) goal(%d) blk_hash_mask(%x)\n", DEVICE_NAME, num_physpages, PAGE_SHIFT, goal, blk_hash_mask); |