@@ -5340,14 +5340,6 @@ static int mem_cgroup_move_account(struct page *page,
5340
5340
__mod_lruvec_state (to_vec , NR_WRITEBACK , nr_pages );
5341
5341
}
5342
5342
5343
- #ifdef CONFIG_TRANSPARENT_HUGEPAGE
5344
- if (compound && !list_empty (page_deferred_list (page ))) {
5345
- spin_lock (& from -> deferred_split_queue .split_queue_lock );
5346
- list_del_init (page_deferred_list (page ));
5347
- from -> deferred_split_queue .split_queue_len -- ;
5348
- spin_unlock (& from -> deferred_split_queue .split_queue_lock );
5349
- }
5350
- #endif
5351
5343
/*
5352
5344
* It is safe to change page->mem_cgroup here because the page
5353
5345
* is referenced, charged, and isolated - we can't race with
@@ -5357,16 +5349,6 @@ static int mem_cgroup_move_account(struct page *page,
5357
5349
/* caller should have done css_get */
5358
5350
page -> mem_cgroup = to ;
5359
5351
5360
- #ifdef CONFIG_TRANSPARENT_HUGEPAGE
5361
- if (compound && list_empty (page_deferred_list (page ))) {
5362
- spin_lock (& to -> deferred_split_queue .split_queue_lock );
5363
- list_add_tail (page_deferred_list (page ),
5364
- & to -> deferred_split_queue .split_queue );
5365
- to -> deferred_split_queue .split_queue_len ++ ;
5366
- spin_unlock (& to -> deferred_split_queue .split_queue_lock );
5367
- }
5368
- #endif
5369
-
5370
5352
spin_unlock_irqrestore (& from -> move_lock , flags );
5371
5353
5372
5354
ret = 0 ;
0 commit comments