Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753102AbWL0S1G (ORCPT ); Wed, 27 Dec 2006 13:27:06 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753730AbWL0S1G (ORCPT ); Wed, 27 Dec 2006 13:27:06 -0500 Received: from mout1.freenet.de ([194.97.50.132]:44826 "EHLO mout1.freenet.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753102AbWL0S1E (ORCPT ); Wed, 27 Dec 2006 13:27:04 -0500 X-Greylist: delayed 6976 seconds by postgrey-1.27 at vger.kernel.org; Wed, 27 Dec 2006 13:27:04 EST Date: Wed, 27 Dec 2006 17:37:18 +0100 To: "linux-kernel@vger.kernel.org" Subject: [PATCH 1/1] 2.6.20-rc1-mm1 pktcdvd: cleanup Reply-To: balagi@justmail.de From: "Thomas Maier" Cc: "akpm@osdl.org" , "petero2@telia.com" Content-Type: multipart/mixed; boundary=----------3mci1nkh6oHi4orjnEiLbZ MIME-Version: 1.0 Message-ID: User-Agent: Opera Mail/9.02 (Win32) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 7939 Lines: 135 ------------3mci1nkh6oHi4orjnEiLbZ Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 7bit Hello, this is a patch to cleanup some things in the pktcdvd driver for linux 2.6.20: - update documentation - use clear_bdi_congested/set_bdi_congested functions directly instead of old wrappers - removed DECLARE_BUF_AS_STRING macro Signed-off-by: Thomas Maier ------------3mci1nkh6oHi4orjnEiLbZ Content-Disposition: attachment; filename=pktcdvd-2.6.20-rc1-mm1.patch Content-Type: application/octet-stream; name=pktcdvd-2.6.20-rc1-mm1.patch Content-Transfer-Encoding: Base64 ZGlmZiAtdXJwTiBsaW51eC0yLjYuMjAtcmMxLW1tMS9Eb2N1bWVudGF0aW9uL0FC SS90ZXN0aW5nL2RlYnVnZnMtcGt0Y2R2ZCBtb2R1bGUvRG9jdW1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MjYxMSw3ICsyNTk5LDcgQEAgc3RhdGljIGludCBw a3RfbWFrZV9yZXF1ZXN0KHJlcXVlc3RfcXVldQogCXNwaW5fbG9jaygmcGQtPmxv Y2spOwogCWlmIChwZC0+d3JpdGVfY29uZ2VzdGlvbl9vbiA+IDAKIAkgICAgJiYg cGQtPmJpb19xdWV1ZV9zaXplID49IHBkLT53cml0ZV9jb25nZXN0aW9uX29uKSB7 Ci0JCWJsa19zZXRfcXVldWVfY29uZ2VzdGVkKHEsIFdSSVRFKTsKKwkJc2V0X2Jk aV9jb25nZXN0ZWQoJnEtPmJhY2tpbmdfZGV2X2luZm8sIFdSSVRFKTsKIAkJZG8g ewogCQkJc3Bpbl91bmxvY2soJnBkLT5sb2NrKTsKIAkJCWNvbmdlc3Rpb25fd2Fp dChXUklURSwgSFopOwo= ------------3mci1nkh6oHi4orjnEiLbZ-- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/