14 Oct, 2011
4 commits
-
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
Signed-off-by: Lars Ellenberg -
Signed-off-by: Philipp Reisner
Signed-off-by: Lars Ellenberg -
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
Signed-off-by: Lars Ellenberg -
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
Signed-off-by: Lars Ellenberg
25 May, 2011
1 commit
-
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:
//
@@
type T;
identifier x;
@@
T *x;
...
* x = kzalloc(... * sizeof(T*) * ..., ...);
//[akpm@linux-foundation.org: use kcalloc()]
Signed-off-by: Ilia Mirkin
Acked-by: Lars Ellenberg
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
02 Oct, 2009
1 commit
-
Signed-off-by: Philipp Reisner
Signed-off-by: Lars Ellenberg