> 1: Introduces two new bdflush tunables:>> ndirty>> The maximum number of buffers which bdflush will attempt to> write out in response to a wakeup. Previously, bdflush would write> out the whole world.>> So this limits the amount of bdflush writeout in response to a> single wakeup_bdflush().>> NOTE: this code appears to be broken. If nfract_stop_bdflush> is set at zero, ndirty will not prevent bdflush from writing out> all dirty buffers. IOW, ndirty doesn't do anything at present.

Indeed, I suspect you'll want to either fix this or removethe code before submitting the patch. Including dead coderight from the start seems kind of pointless.

Note that if you have the ndirty thing functional, thenfract_stop_bdflush tunable isn't doing anything, sincekswapd would stop after ndirty pages ...