diff options
Diffstat (limited to 'mm/page_alloc.c')
-rw-r--r-- | mm/page_alloc.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 8fd7f45a04eb..e515bfcf7f28 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c | |||
@@ -4102,7 +4102,6 @@ static int | |||
4102 | __perform_reclaim(gfp_t gfp_mask, unsigned int order, | 4102 | __perform_reclaim(gfp_t gfp_mask, unsigned int order, |
4103 | const struct alloc_context *ac) | 4103 | const struct alloc_context *ac) |
4104 | { | 4104 | { |
4105 | struct reclaim_state reclaim_state; | ||
4106 | int progress; | 4105 | int progress; |
4107 | unsigned int noreclaim_flag; | 4106 | unsigned int noreclaim_flag; |
4108 | unsigned long pflags; | 4107 | unsigned long pflags; |
@@ -4114,13 +4113,10 @@ __perform_reclaim(gfp_t gfp_mask, unsigned int order, | |||
4114 | psi_memstall_enter(&pflags); | 4113 | psi_memstall_enter(&pflags); |
4115 | fs_reclaim_acquire(gfp_mask); | 4114 | fs_reclaim_acquire(gfp_mask); |
4116 | noreclaim_flag = memalloc_noreclaim_save(); | 4115 | noreclaim_flag = memalloc_noreclaim_save(); |
4117 | reclaim_state.reclaimed_slab = 0; | ||
4118 | current->reclaim_state = &reclaim_state; | ||
4119 | 4116 | ||
4120 | progress = try_to_free_pages(ac->zonelist, order, gfp_mask, | 4117 | progress = try_to_free_pages(ac->zonelist, order, gfp_mask, |
4121 | ac->nodemask); | 4118 | ac->nodemask); |
4122 | 4119 | ||
4123 | current->reclaim_state = NULL; | ||
4124 | memalloc_noreclaim_restore(noreclaim_flag); | 4120 | memalloc_noreclaim_restore(noreclaim_flag); |
4125 | fs_reclaim_release(gfp_mask); | 4121 | fs_reclaim_release(gfp_mask); |
4126 | psi_memstall_leave(&pflags); | 4122 | psi_memstall_leave(&pflags); |