fs: fix do_mount_root() false positive kmemcheck warning
authorVegard Nossum <vegard.nossum@gmail.com>
Sat, 16 May 2009 09:26:20 +0000 (11:26 +0200)
committerVegard Nossum <vegard.nossum@gmail.com>
Mon, 15 Jun 2009 13:49:42 +0000 (15:49 +0200)
commit3b5c760efcddf1ebdd39a2035b554e96febd7466
treeefc709a5a17216e66aebe44c5f80fc2ee168edcd
parent3446a8aa7ebcbc0a799e5e8fc4f2da0738d6bc21
fs: fix do_mount_root() false positive kmemcheck warning

This false positive is due to the fact that do_mount_root() fakes a
mount option (which is normally read from userspace), and the kernel
unconditionally reads a whole page for the mount option.

Hide the false positive by using the new __getname_gfp() with the
__GFP_NOTRACK_FALSE_POSITIVE flag.

Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com>
init/do_mounts.c