Commit 7d8d357
brd: Remove use of page->index
This debugging check will become more costly in the future when we shrink
struct page. It has not proven to be useful, so simply remove it.
This lets us use __xa_insert instead of __xa_cmpxchg() as we no longer
need to know about the page that is currently stored in the XArray.
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Link: https://lore.kernel.org/r/20240315181212.2573753-1-willy@infradead.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>1 parent 39cd87c commit 7d8d357
1 file changed
Lines changed: 11 additions & 29 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
| 32 | + | |
36 | 33 | | |
37 | 34 | | |
38 | 35 | | |
| |||
51 | 48 | | |
52 | 49 | | |
53 | 50 | | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
| 51 | + | |
63 | 52 | | |
64 | 53 | | |
65 | 54 | | |
66 | 55 | | |
67 | 56 | | |
68 | 57 | | |
69 | 58 | | |
70 | | - | |
71 | | - | |
| 59 | + | |
| 60 | + | |
72 | 61 | | |
73 | 62 | | |
74 | 63 | | |
| |||
80 | 69 | | |
81 | 70 | | |
82 | 71 | | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
| 72 | + | |
| 73 | + | |
95 | 74 | | |
96 | | - | |
97 | | - | |
98 | 75 | | |
99 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
100 | 82 | | |
101 | 83 | | |
102 | 84 | | |
| |||
0 commit comments