Subject: Re: Last remaining insque / remque uses
To: Jason Thorpe <thorpej@shagadelic.org>
From: Iain Hibbert <plunky@rya-online.net>
List: tech-kern
Date: 10/28/2007 13:16:29
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
--0-429050770-1193577389=:16586
Content-Type: TEXT/PLAIN; charset=US-ASCII
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Tue, 23 Oct 2007, Jason Thorpe wrote:
> The last remaining uses of insque / remque in the kernel are:
>
> C symbol: insque
>
> File Function Line
> 0 coda_namecache.c <global> 96 #ifndef insque
Coda is much cleaner than netiso, and its not too difficult to tidy that
away. There are two ways through it and I'm not sure which is better.
a) If we own that code and want to use queue(3) macros, then diff.queue
attached does handle that. There is not an exact match between queue(3)
and the macros that were being used and the original macros were not a
complete abstraction, so I've just removed them and replaced with the
queue(3) macros in plain view.
b) If the coda project owns that code and it would be difficult to
maintain differences, then diff.insque attached removes the dependency by
giving coda_namecache a private copy of insque/remque and changing nothing
else.
I notice that FreeBSD uses the same kernel code as us, and could no doubt
update the same way (they have an open PR to do the second method though
the patch supplied is much more invasive). Linux has different, so maybe
the coda project does not have a great claim on it. I prefer the queue(3)
method, but offer both for comment.
I don't use coda and only have one computer, so testing is needed..
iain
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (NetBSD)
iQEVAwUBRySLrvFJxoMWDXVDAQIAjAgAm1ugd5OU2DH8tRwvCFQrp/HFzeNi9BZy
XBjIV0UWH+TNeruxv+P/SE5AlmdOmzklRflxvaPuE+seRvYlTpeC4xfnDUABu3iL
O6v4xY+PDl906lzVN9bYpdYVxWbqdp1wZPV9wiymatio5h42jKfcbXXCsIooMDmj
7GOq73++PWncfxdXyfpk7AUMrbKEW7sS7gWsPH7tEaGm/yEW5BXHpOnqYc5CVMGD
N9U7Xfc28dYhzSMhMmSrJGEKjJY5cKikWJxni1oaSNIA1J6DCy6+nRXnxsid20ST
3ma9BLGTLhkXLxr/To5pFolE2FNmlfzhuJOPY6jsEi17Ugqe53iG5g==
=IFwZ
-----END PGP SIGNATURE-----
--0-429050770-1193577389=:16586
Content-Type: TEXT/PLAIN; charset=US-ASCII; name=diff.queue
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.NEB.4.64.0710281316290.16586@localhost.>
Content-Description: move coda to queue(3) macros
Content-Disposition: attachment; filename=diff.queue
LS0tIC91c3Ivc3JjL3N5cy9jb2RhL2NvZGFfbmFtZWNhY2hlLmMJMjAwNy0x
MC0yNCAyMDoxNzoyOS4wMDAwMDAwMDAgKzAxMDANCisrKyBjb2RhX25hbWVj
YWNoZS5jCTIwMDctMTAtMjggMTI6NDE6MDcuMDAwMDAwMDAwICswMDAwDQpA
QCAtOTMsMTAgKzkzLDYgQEANCiAjaW5jbHVkZSA8Y29kYS9jb2RhX3Zub3Bz
Lmg+DQogI2VuZGlmDQogDQotI2lmbmRlZiBpbnNxdWUNCi0jaW5jbHVkZSA8
c3lzL3N5c3RtLmg+DQotI2VuZGlmIC8qIGluc3F1ZSAqLw0KLQ0KIC8qDQog
ICogRGVjbGFyYXRpb24gb2YgdGhlIG5hbWUgY2FjaGUgZGF0YSBzdHJ1Y3R1
cmUuDQogICovDQpAQCAtMTUwLDE4ICsxNDYsMTUgQEANCiAgICAgQ09EQV9B
TExPQyhjb2RhX25jX2hlYXAsIHN0cnVjdCBjb2RhX2NhY2hlICosIFRPVEFM
X0NBQ0hFX1NJWkUpOw0KICAgICBDT0RBX0FMTE9DKGNvZGFfbmNfaGFzaCwg
c3RydWN0IGNvZGFfaGFzaCAqLCBUT1RBTF9IQVNIX1NJWkUpOw0KIA0KLSAg
ICBjb2RhX25jX2xydS5scnVfbmV4dCA9DQotCWNvZGFfbmNfbHJ1LmxydV9w
cmV2ID0gKHN0cnVjdCBjb2RhX2NhY2hlICopTFJVX1BBUlQoJmNvZGFfbmNf
bHJ1KTsNCi0NCisgICAgbWVtc2V0KGNvZGFfbmNfaGVhcCwgMCwgVE9UQUxf
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
dHJ1Y3QgY25vZGUJKmNwOwkJCS8qIHZub2RlIG9mIHRoZSBmaWxlICovDQog
CXN0cnVjdCBjbm9kZQkqZGNwOwkJCS8qIHBhcmVudCdzIGNub2RlICovDQog
CWthdXRoX2NyZWRfdCAgICBjcmVkOwkJCS8qIHVzZXIgY3JlZGVudGlhbHMg
Ki8NCkBAIC0xMjAsMTQgKzk3LDEzIEBADQogfTsNCiANCiBzdHJ1Y3QJY29k
YV9scnUgewkJLyogU3RhcnQgb2YgTFJVIGNoYWluICovDQotCWNoYXIgKmR1
bW15MSwgKmR1bW15MjsJCQkvKiBwbGFjZSBob2xkZXJzICovDQotCXN0cnVj
dCBjb2RhX2NhY2hlICpscnVfbmV4dCwgKmxydV9wcmV2OyAgIC8qIHBvc2l0
aW9uIG9mIHBvaW50ZXJzIGlzIGltcG9ydGFudCAqLw0KKwlUQUlMUV9IRUFE
KCxjb2RhX2NhY2hlKQloZWFkOw0KIH07DQogDQogDQogc3RydWN0IGNvZGFf
aGFzaCB7CQkvKiBTdGFydCBvZiBIYXNoIGNoYWluICovDQotCXN0cnVjdCBj
b2RhX2NhY2hlICpoYXNoX25leHQsICpoYXNoX3ByZXY7IC8qIE5PVEU6IGNo
YWluIHBvaW50ZXJzIG11c3QgYmUgZmlyc3QgKi8NCi0gICAgICAgIGludCBs
ZW5ndGg7ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvKiB1c2VkIGZv
ciB0dW5pbmcgcHVycG9zZXMgKi8NCisJTElTVF9IRUFEKCxjb2RhX2NhY2hl
KQloZWFkOw0KKyAgICAgICAgaW50CQkJbGVuZ3RoOwkvKiB1c2VkIGZvciB0
dW5pbmcgcHVycG9zZXMgKi8NCiB9Ow0KIA0KIA0K
--0-429050770-1193577389=:16586
Content-Type: TEXT/PLAIN; charset=US-ASCII; name=diff.insque
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.NEB.4.64.0710281316291.16586@localhost.>
Content-Description: remove reliance on libkern/insque
Content-Disposition: attachment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