]> Git Repo - linux.git/commit - init/do_mounts.c
initmpfs: make rootfs use tmpfs when CONFIG_TMPFS enabled
authorRob Landley <[email protected]>
Wed, 11 Sep 2013 21:26:12 +0000 (14:26 -0700)
committerLinus Torvalds <[email protected]>
Wed, 11 Sep 2013 22:59:37 +0000 (15:59 -0700)
commit16203a7a9422315bc929461503e3a046459ea5ff
treef32de38261ac95e4ac3467595a3f7be445b02797
parent57f150a58c40cda598c31af8bceb8598f43c3e5f
initmpfs: make rootfs use tmpfs when CONFIG_TMPFS enabled

Conditionally call the appropriate fs_init function and fill_super
functions.  Add a use once guard to shmem_init() to simply succeed on a
second call.

(Note that IS_ENABLED() is a compile time constant so dead code
elimination removes unused function calls when CONFIG_TMPFS is disabled.)

Signed-off-by: Rob Landley <[email protected]>
Cc: Jeff Layton <[email protected]>
Cc: Jens Axboe <[email protected]>
Cc: Stephen Warren <[email protected]>
Cc: Rusty Russell <[email protected]>
Cc: Jim Cromie <[email protected]>
Cc: Sam Ravnborg <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
Cc: "Eric W. Biederman" <[email protected]>
Cc: Alexander Viro <[email protected]>
Cc: "H. Peter Anvin" <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
init/do_mounts.c
mm/shmem.c
This page took 0.05549 seconds and 4 git commands to generate.