hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/mm/workingset.c
....@@ -432,8 +432,6 @@
432432
433433 void workingset_update_node(struct xa_node *node)
434434 {
435
- struct address_space *mapping;
436
-
437435 /*
438436 * Track non-empty nodes that contain only shadow entries;
439437 * unlink those that contain pages or are being freed.
....@@ -442,8 +440,7 @@
442440 * already where they should be. The list_empty() test is safe
443441 * as node->private_list is protected by the i_pages lock.
444442 */
445
- mapping = container_of(node->array, struct address_space, i_pages);
446
- lockdep_assert_held(&mapping->i_pages.xa_lock);
443
+ VM_WARN_ON_ONCE(!irqs_disabled()); /* For __inc_lruvec_page_state */
447444
448445 if (node->count && node->count == node->nr_values) {
449446 if (list_empty(&node->private_list)) {