summaryrefslogtreecommitdiffstats
path: root/lib/strncpy_from_user.c
diff options
context:
space:
mode:
authorTony Luck <tony.luck@intel.com>2014-12-13 01:54:59 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2014-12-13 21:42:46 +0100
commit4308ce17f6e1c404276484f6e4e0bf496a95982f (patch)
treeddbb49cfe1b6a6217fd6c5e2819bb931ecaa714a /lib/strncpy_from_user.c
parentmemcg: do not abuse memcg_kmem_skip_account (diff)
downloadlinux-4308ce17f6e1c404276484f6e4e0bf496a95982f.tar.xz
linux-4308ce17f6e1c404276484f6e4e0bf496a95982f.zip
mm/memblock.c: refactor functions to set/clear MEMBLOCK_HOTPLUG
There is a lot of duplication in the rubric around actually setting or clearing a mem region flag. Create a new helper function to do this and reduce each of memblock_mark_hotplug() and memblock_clear_hotplug() to a single line. This will be useful if someone were to add a new mem region flag - which I hope to be doing some day soon. But it looks like a plausible cleanup even without that - so I'd like to get it out of the way now. Signed-off-by: Tony Luck <tony.luck@intel.com> Cc: Santosh Shilimkar <santosh.shilimkar@ti.com> Cc: Tang Chen <tangchen@cn.fujitsu.com> Cc: Grygorii Strashko <grygorii.strashko@ti.com> Cc: Zhang Yanfei <zhangyanfei@cn.fujitsu.com> Cc: Philipp Hachtmann <phacht@linux.vnet.ibm.com> Cc: Yinghai Lu <yinghai@kernel.org> Cc: Emil Medve <Emilian.Medve@freescale.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib/strncpy_from_user.c')
0 files changed, 0 insertions, 0 deletions