1 From a51f4e9bff26cc43b53938169f98c27183ec63ea Mon Sep 17 00:00:00 2001
2 From: Kurt Mahan <kmahan@freescale.com>
3 Date: Wed, 31 Oct 2007 17:08:59 -0600
4 Subject: [PATCH] Change to align on page size for COLDFIRE.
6 LTIBName: mcfv4e-namespace-align
7 Signed-off-by: Kurt Mahan <kmahan@freescale.com>
9 fs/namespace.c | 4 ++++
10 1 files changed, 4 insertions(+), 0 deletions(-)
14 @@ -1364,7 +1364,11 @@ int copy_mount_options(const void __user
15 /* copy_from_user cannot cross TASK_SIZE ! */
16 size = TASK_SIZE - (unsigned long)data;
18 +#ifndef CONFIG_COLDFIRE
21 + size = PAGE_SIZE - ((unsigned long)data & ~PAGE_MASK);
24 i = size - exact_copy_from_user((void *)page, data, size);