]> git.baikalelectronics.ru Git - kernel.git/commit
mm: fix build of split ptlock code
authorOlof Johansson <olof@lixom.net>
Fri, 20 Dec 2013 22:28:05 +0000 (14:28 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 20 Dec 2013 23:41:27 +0000 (15:41 -0800)
commite578528478bf04d43a3bf2d4cc82c6bef9c1ff20
treee880fa94dde5e26d5529e3562ca037f3e9352d3f
parent2fce2377785da5eaf804d6e8080f65163e059569
mm: fix build of split ptlock code

Commit 0cecd1f4310b ('mm: do not allocate page->ptl dynamically, if
spinlock_t fits to long') restructures some allocators that are compiled
even if USE_SPLIT_PTLOCKS arn't used.  It results in compilation
failure:

  mm/memory.c:4282:6: error: 'struct page' has no member named 'ptl'
  mm/memory.c:4288:12: error: 'struct page' has no member named 'ptl'

Add in the missing ifdef.

Fixes: 0cecd1f4310b ('mm: do not allocate page->ptl dynamically, if spinlock_t fits to long')
Signed-off-by: Olof Johansson <olof@lixom.net>
Cc: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: Hugh Dickins <hughd@google.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/memory.c