<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/lib/lru_cache.c, branch v3.8</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/
</subtitle>
<id>https://git.shady.money/linux/atom?h=v3.8</id>
<link rel='self' href='https://git.shady.money/linux/atom?h=v3.8'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/'/>
<updated>2011-10-14T14:47:45Z</updated>
<entry>
<title>lru_cache: allow multiple changes per transaction</title>
<updated>2011-10-14T14:47:45Z</updated>
<author>
<name>Lars Ellenberg</name>
<email>lars.ellenberg@linbit.com</email>
</author>
<published>2011-02-21T12:21:01Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=46a15bc3ec425b546d140581c28192ab7877ddc4'/>
<id>urn:sha1:46a15bc3ec425b546d140581c28192ab7877ddc4</id>
<content type='text'>
Allow multiple changes to the active set of elements in lru_cache.
The only current user of lru_cache, drbd, is driving this generalisation.

Signed-off-by: Philipp Reisner &lt;philipp.reisner@linbit.com&gt;
Signed-off-by: Lars Ellenberg &lt;lars.ellenberg@linbit.com&gt;
</content>
</entry>
<entry>
<title>lru_cache: consolidate lc_get and lc_try_get</title>
<updated>2011-10-14T14:47:43Z</updated>
<author>
<name>Lars Ellenberg</name>
<email>lars.ellenberg@linbit.com</email>
</author>
<published>2011-02-21T12:20:58Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=a9efc748d679efb39fe7a8a536dde94cee691604'/>
<id>urn:sha1:a9efc748d679efb39fe7a8a536dde94cee691604</id>
<content type='text'>
Signed-off-by: Philipp Reisner &lt;philipp.reisner@linbit.com&gt;
Signed-off-by: Lars Ellenberg &lt;lars.ellenberg@linbit.com&gt;
</content>
</entry>
<entry>
<title>lru_cache.h: fix comments referring to ts_ instead of lc_</title>
<updated>2011-10-14T14:47:43Z</updated>
<author>
<name>Lars Ellenberg</name>
<email>lars.ellenberg@linbit.com</email>
</author>
<published>2011-02-21T12:20:57Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=0097f0405d365eff66235f887d47fa0b62b28599'/>
<id>urn:sha1:0097f0405d365eff66235f887d47fa0b62b28599</id>
<content type='text'>
For some time we contemplated calling the "struct lru_cache"
a "struct tracked_set", and some comments kept the ts_ prefix.

Fix those to match the member field names.

Signed-off-by: Philipp Reisner &lt;philipp.reisner@linbit.com&gt;
Signed-off-by: Lars Ellenberg &lt;lars.ellenberg@linbit.com&gt;
</content>
</entry>
<entry>
<title>drbd: use clear_bit_unlock() where appropriate</title>
<updated>2011-10-14T14:47:42Z</updated>
<author>
<name>Lars Ellenberg</name>
<email>lars.ellenberg@linbit.com</email>
</author>
<published>2011-02-21T12:20:55Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=4738fa16907a933d72bbcae1b8922dc9330fde92'/>
<id>urn:sha1:4738fa16907a933d72bbcae1b8922dc9330fde92</id>
<content type='text'>
Some open-coded clear_bit(); smp_mb__after_clear_bit();
should in fact have been smp_mb__before_clear_bit(); clear_bit();

Instead, use clear_bit_unlock() to annotate the intention,
and have it do the right thing.

Signed-off-by: Philipp Reisner &lt;philipp.reisner@linbit.com&gt;
Signed-off-by: Lars Ellenberg &lt;lars.ellenberg@linbit.com&gt;
</content>
</entry>
<entry>
<title>lru_cache: use correct type in sizeof for allocation</title>
<updated>2011-05-25T15:39:52Z</updated>
<author>
<name>Ilia Mirkin</name>
<email>imirkin@alum.mit.edu</email>
</author>
<published>2011-05-25T00:13:30Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=a08aa355af18c53f17f499c1cc6e2af66a77ba9b'/>
<id>urn:sha1:a08aa355af18c53f17f499c1cc6e2af66a77ba9b</id>
<content type='text'>
This has no actual effect, since sizeof(struct hlist_head) ==
sizeof(struct hlist_head *), but it's still the wrong type to use.

The semantic match that finds this problem:
// &lt;smpl&gt;
@@
type T;
identifier x;
@@
T *x;
...
* x = kzalloc(... * sizeof(T*) * ..., ...);
// &lt;/smpl&gt;

[akpm@linux-foundation.org: use kcalloc()]
Signed-off-by: Ilia Mirkin &lt;imirkin@alum.mit.edu&gt;
Acked-by: Lars Ellenberg &lt;lars@linbit.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>The DRBD driver</title>
<updated>2009-10-01T19:17:49Z</updated>
<author>
<name>Philipp Reisner</name>
<email>philipp.reisner@linbit.com</email>
</author>
<published>2009-09-25T23:07:19Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=b411b3637fa71fce9cf2acf0639009500f5892fe'/>
<id>urn:sha1:b411b3637fa71fce9cf2acf0639009500f5892fe</id>
<content type='text'>
Signed-off-by: Philipp Reisner &lt;philipp.reisner@linbit.com&gt;
Signed-off-by: Lars Ellenberg &lt;lars.ellenberg@linbit.com&gt;
</content>
</entry>
</feed>
