Commit 51b17629 authored by Sebastian Andrzej Siewior's avatar Sebastian Andrzej Siewior Committed by Linus Torvalds

include/linux/vmpressure.h: use spinlock_t instead of struct spinlock

For spinlocks the type spinlock_t should be used instead of "struct
spinlock".

Use spinlock_t for spinlock's definition.

Link: http://lkml.kernel.org/r/20190704153803.12739-3-bigeasy@linutronix.deSigned-off-by: default avatarSebastian Andrzej Siewior <bigeasy@linutronix.de>
Reviewed-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 1fcf0a56
...@@ -17,7 +17,7 @@ struct vmpressure { ...@@ -17,7 +17,7 @@ struct vmpressure {
unsigned long tree_scanned; unsigned long tree_scanned;
unsigned long tree_reclaimed; unsigned long tree_reclaimed;
/* The lock is used to keep the scanned/reclaimed above in sync. */ /* The lock is used to keep the scanned/reclaimed above in sync. */
struct spinlock sr_lock; spinlock_t sr_lock;
/* The list of vmpressure_event structs. */ /* The list of vmpressure_event structs. */
struct list_head events; struct list_head events;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment