Skip to content

Commit

Permalink
include/linux/vmpressure.h: use spinlock_t instead of struct spinlock
Browse files Browse the repository at this point in the history
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.de
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Sebastian Andrzej Siewior authored and Linus Torvalds committed Jul 12, 2019
1 parent 1fcf0a5 commit 51b1762
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/vmpressure.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ struct vmpressure {
unsigned long tree_scanned;
unsigned long tree_reclaimed;
/* 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. */
struct list_head events;
Expand Down

0 comments on commit 51b1762

Please sign in to comment.