]> Git Repo - linux.git/commit
mm: shmem: avoid atomic operation during shmem_getpage_gfp
authorMel Gorman <[email protected]>
Wed, 4 Jun 2014 23:10:24 +0000 (16:10 -0700)
committerLinus Torvalds <[email protected]>
Wed, 4 Jun 2014 23:54:09 +0000 (16:54 -0700)
commit07a427884348d38a6fd56fa4d78249c407196650
treef1cea6fad3957b790f7cc28c47ef8bdab15db259
parentb745bc85f21ea707e4ea1a91948055fa3e72c77b
mm: shmem: avoid atomic operation during shmem_getpage_gfp

shmem_getpage_gfp uses an atomic operation to set the SwapBacked field
before it's even added to the LRU or visible.  This is unnecessary as what
could it possible race against?  Use an unlocked variant.

Signed-off-by: Mel Gorman <[email protected]>
Acked-by: Johannes Weiner <[email protected]>
Acked-by: Rik van Riel <[email protected]>
Cc: Vlastimil Babka <[email protected]>
Cc: Jan Kara <[email protected]>
Cc: Michal Hocko <[email protected]>
Cc: Hugh Dickins <[email protected]>
Cc: Dave Hansen <[email protected]>
Cc: Theodore Ts'o <[email protected]>
Cc: "Paul E. McKenney" <[email protected]>
Cc: Oleg Nesterov <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
include/linux/page-flags.h
mm/shmem.c
This page took 0.056262 seconds and 4 git commands to generate.