Author: Hugh Dickins <firstname.lastname@example.org>
AuthorDate: Mon Sep 21 17:03:37 2009 -0700
Committer: Linus Torvalds <email@example.com>
CommitDate: Tue Sep 22 07:17:41 2009 -0700
tmpfs: depend on shmem
CONFIG_SHMEM off gives you (ramfs masquerading as) tmpfs, even when
CONFIG_TMPFS is off: that's a little anomalous, and I'd intended to make
more sense of it by removing CONFIG_TMPFS altogether, always enabling its
code when CONFIG_SHMEM; but so many defconfigs have CONFIG_SHMEM on
CONFIG_TMPFS off that we'd better leave that as is.
But there is no point in asking for CONFIG_TMPFS if CONFIG_SHMEM is off:
make TMPFS depend on SHMEM, which also prevents TMPFS_POSIX_ACL
shmem_acl.o being pointlessly built into the kernel when SHMEM is off.
And a selfish change, to prevent the world from being rebuilt when I
switch between CONFIG_SHMEM on and off: the only CONFIG_SHMEM in the
header files is mm.h shmem_lock() - give that a shmem.c stub instead.
Signed-off-by: Hugh Dickins <firstname.lastname@example.org>
Acked-by: Matt Mackall <email@example.com>
Signed-off-by: Andrew Morton <firstname.lastname@example.org>
Signed-off-by: Linus Torvalds <email@example.com>
fs/Kconfig | 1 +
include/linux/mm.h | 11 +----------
mm/shmem.c | 5 +++++
3 files changed, 7 insertions(+), 10 deletions(-)
diff --git a/fs/Kconfig b/fs/Kconfig
index 455aa20..d4bf8ca 100644
@@ -109,6 +109,7 @@ source "fs/sysfs/Kconfig"
bool "Virtual memory file system support (former shm fs)"
+ depends on SHMEM
Tmpfs is a file system which keeps all files in virtual memory.
diff --git a/include/linux/mm.h b/include/linux/mm.h