.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
---|
1 | 2 | /* Copyright (c) 2016 Facebook |
---|
2 | | - * |
---|
3 | | - * This program is free software; you can redistribute it and/or |
---|
4 | | - * modify it under the terms of version 2 of the GNU General Public |
---|
5 | | - * License as published by the Free Software Foundation. |
---|
6 | 3 | */ |
---|
7 | 4 | #ifndef __BPF_LRU_LIST_H_ |
---|
8 | 5 | #define __BPF_LRU_LIST_H_ |
---|
9 | 6 | |
---|
| 7 | +#include <linux/cache.h> |
---|
10 | 8 | #include <linux/list.h> |
---|
11 | 9 | #include <linux/spinlock_types.h> |
---|
12 | 10 | |
---|
.. | .. |
---|
33 | 31 | struct bpf_lru_list { |
---|
34 | 32 | struct list_head lists[NR_BPF_LRU_LIST_T]; |
---|
35 | 33 | unsigned int counts[NR_BPF_LRU_LIST_COUNT]; |
---|
36 | | - /* The next inacitve list rotation starts from here */ |
---|
| 34 | + /* The next inactive list rotation starts from here */ |
---|
37 | 35 | struct list_head *next_inactive_rotation; |
---|
38 | 36 | |
---|
39 | 37 | raw_spinlock_t lock ____cacheline_aligned_in_smp; |
---|