From: Kirill A. Shutemov Date: Fri, 20 Dec 2013 11:35:58 +0000 (+0200) Subject: mm: do not allocate page->ptl dynamically, if spinlock_t fits to long X-Git-Tag: v3.13-rc5~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=597d795a2a78;p=pandora-kernel.git mm: do not allocate page->ptl dynamically, if spinlock_t fits to long In struct page we have enough space to fit long-size page->ptl there, but we use dynamically-allocated page->ptl if size(spinlock_t) is larger than sizeof(int). It hurts 64-bit architectures with CONFIG_GENERIC_LOCKBREAK, where sizeof(spinlock_t) == 8, but it easily fits into struct page. Signed-off-by: Kirill A. Shutemov Acked-by: Hugh Dickins Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed