Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

folio_queue: remove unused field `marks3`

The last user was removed by commit e2d46f2ec332 ("netfs: Change the
read result collector to only use one work item").

Signed-off-by: Max Kellermann <max.kellermann@ionos.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Link: https://lore.kernel.org/20250519134813.2975312-10-dhowells@redhat.com
cc: Paulo Alcantara <pc@manguebit.com>
cc: netfs@lists.linux.dev
cc: linux-fsdevel@vger.kernel.org
Signed-off-by: Christian Brauner <brauner@kernel.org>

authored by

Max Kellermann and committed by
Christian Brauner
6bb09e5d 07c08bac

-45
-3
Documentation/core-api/folio_queue.rst
··· 151 151 152 152 void folioq_mark(struct folio_queue *folioq, unsigned int slot); 153 153 void folioq_mark2(struct folio_queue *folioq, unsigned int slot); 154 - void folioq_mark3(struct folio_queue *folioq, unsigned int slot); 155 154 156 155 Cleared by:: 157 156 158 157 void folioq_unmark(struct folio_queue *folioq, unsigned int slot); 159 158 void folioq_unmark2(struct folio_queue *folioq, unsigned int slot); 160 - void folioq_unmark3(struct folio_queue *folioq, unsigned int slot); 161 159 162 160 And the marks can be queried by:: 163 161 164 162 bool folioq_is_marked(const struct folio_queue *folioq, unsigned int slot); 165 163 bool folioq_is_marked2(const struct folio_queue *folioq, unsigned int slot); 166 - bool folioq_is_marked3(const struct folio_queue *folioq, unsigned int slot); 167 164 168 165 The marks can be used for any purpose and are not interpreted by this API. 169 166
-42
include/linux/folio_queue.h
··· 34 34 struct folio_queue *prev; /* Previous queue segment of NULL */ 35 35 unsigned long marks; /* 1-bit mark per folio */ 36 36 unsigned long marks2; /* Second 1-bit mark per folio */ 37 - unsigned long marks3; /* Third 1-bit mark per folio */ 38 37 #if PAGEVEC_SIZE > BITS_PER_LONG 39 38 #error marks is not big enough 40 39 #endif ··· 57 58 folioq->prev = NULL; 58 59 folioq->marks = 0; 59 60 folioq->marks2 = 0; 60 - folioq->marks3 = 0; 61 61 folioq->rreq_id = rreq_id; 62 62 folioq->debug_id = 0; 63 63 } ··· 177 179 } 178 180 179 181 /** 180 - * folioq_is_marked3: Check third folio mark in a folio queue segment 181 - * @folioq: The segment to query 182 - * @slot: The slot number of the folio to query 183 - * 184 - * Determine if the third mark is set for the folio in the specified slot in a 185 - * folio queue segment. 186 - */ 187 - static inline bool folioq_is_marked3(const struct folio_queue *folioq, unsigned int slot) 188 - { 189 - return test_bit(slot, &folioq->marks3); 190 - } 191 - 192 - /** 193 - * folioq_mark3: Set the third mark on a folio in a folio queue segment 194 - * @folioq: The segment to modify 195 - * @slot: The slot number of the folio to modify 196 - * 197 - * Set the third mark for the folio in the specified slot in a folio queue 198 - * segment. 199 - */ 200 - static inline void folioq_mark3(struct folio_queue *folioq, unsigned int slot) 201 - { 202 - set_bit(slot, &folioq->marks3); 203 - } 204 - 205 - /** 206 - * folioq_unmark3: Clear the third mark on a folio in a folio queue segment 207 - * @folioq: The segment to modify 208 - * @slot: The slot number of the folio to modify 209 - * 210 - * Clear the third mark for the folio in the specified slot in a folio queue 211 - * segment. 212 - */ 213 - static inline void folioq_unmark3(struct folio_queue *folioq, unsigned int slot) 214 - { 215 - clear_bit(slot, &folioq->marks3); 216 - } 217 - 218 - /** 219 182 * folioq_append: Add a folio to a folio queue segment 220 183 * @folioq: The segment to add to 221 184 * @folio: The folio to add ··· 277 318 folioq->vec.folios[slot] = NULL; 278 319 folioq_unmark(folioq, slot); 279 320 folioq_unmark2(folioq, slot); 280 - folioq_unmark3(folioq, slot); 281 321 } 282 322 283 323 #endif /* _LINUX_FOLIO_QUEUE_H */