X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=mm%2Ftiny-shmem.c;fp=mm%2Ftiny-shmem.c;h=f9d6a9cc91c4bc806700c6119f45e34283abdeb7;hb=64ba3f394c830ec48a1c31b53dcae312c56f1604;hp=5f2cbf0f153c7a35db2219cab124c0ac8513ce4c;hpb=be1e6109ac94a859551f8e1774eb9a8469fe055c;p=linux-2.6.git diff --git a/mm/tiny-shmem.c b/mm/tiny-shmem.c index 5f2cbf0f1..f9d6a9cc9 100644 --- a/mm/tiny-shmem.c +++ b/mm/tiny-shmem.c @@ -12,6 +12,7 @@ #include #include +#include #include #include #include @@ -32,6 +33,9 @@ static int __init init_tmpfs(void) { BUG_ON(register_filesystem(&tmpfs_fs_type) != 0); +#ifdef CONFIG_TMPFS + devfs_mk_dir("shm"); +#endif shm_mnt = kern_mount(&tmpfs_fs_type); BUG_ON(IS_ERR(shm_mnt));