diff options
author | Dan Williams <dan.j.williams@intel.com> | 2017-07-10 15:48:22 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-07-10 16:32:31 -0700 |
commit | 16981d763501c0e06e434cf6b59f964c520e0ccc (patch) | |
tree | 7a286e047280971e4eabb5812d5beca9da7d3f98 /arch/sh | |
parent | 7ab0e50ad0831e714dcdc3de44a7fe3887732b7c (diff) | |
download | linux-stable-16981d763501c0e06e434cf6b59f964c520e0ccc.tar.gz linux-stable-16981d763501c0e06e434cf6b59f964c520e0ccc.tar.bz2 linux-stable-16981d763501c0e06e434cf6b59f964c520e0ccc.zip |
mm: improve readability of transparent_hugepage_enabled()
Turn the macro into a static inline and rewrite the condition checks for
better readability in preparation for adding another condition.
[ross.zwisler@linux.intel.com: fix logic to make conversion equivalent]
[akpm@linux-foundation.org: resolve vs mm-make-pr_set_thp_disable-immediately-active.patch]
[akpm@linux-foundation.org: include coredump.h for MMF_DISABLE_THP]
Link: http://lkml.kernel.org/r/149739530612.20686.14760671150202647861.stgit@dwillia2-desk3.amr.corp.intel.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Reviewed-by: Ross Zwisler <ross.zwisler@linux.intel.com>
Acked-by: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Jan Kara <jack@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/sh')
0 files changed, 0 insertions, 0 deletions